Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Listing private #11

Open
001101 opened this issue Sep 3, 2016 · 1 comment
Open

Make Listing private #11

001101 opened this issue Sep 3, 2016 · 1 comment

Comments

@001101
Copy link

001101 commented Sep 3, 2016

If you want to make your hub private, just for registered users (as it should be by default), then you can change the ACL behaviour

/protected/modules/mostactiveusers/controllers

from

  public function behaviors()
    {
        return [
            'acl' => [
                'class' => \humhub\components\behaviors\AccessControl::className(),
                'guestAllowedActions' => ['list']
            ]
        ];
    }

to

  public function behaviors()
    {
        return [
            'acl' => [
                'class' => \humhub\components\behaviors\AccessControl::className(),
                'loggedInOnly' => ['list']
            ]
        ];
    }

greets

@001101
Copy link
Author

001101 commented Jan 25, 2017

If you are using the module 'mostactiveusers' you can also change the file

protected/modules/mostactiveusers/controllers/ListController.php

public function behaviors()
    {
        return [
            'acl' => [
                'class' => \humhub\components\behaviors\AccessControl::className(),
                'guestAllowedActions' => ['list']
            ]
        ];
    }

to

public function behaviors()
    {
        return [
            'acl' => [
                'class' => \humhub\components\behaviors\AccessControl::className(),
                'loggedInOnly' => ['']
            ]
        ];
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant