humhub / documentation

HumHub documentations
6 stars 53 forks source link

Example of default-permissions ist not working #59

Open smashm opened 2 years ago

smashm commented 2 years ago

This point of the documentation describes how to configure default permissions per common.php https://docs.humhub.org/docs/admin/permissions/#default-permissions

I tried that for as described for the default of creating a public spaces of new user groups, but the permission table don't show the expected result. (See discussion here: https://community.humhub.com/content/perma?id=253087)

return [
    'params' => [
                'defaultPermissions' => [
            'humhub\modules\space\permissions\CreatePublicSpace' => [ 
            \humhub\modules\user\models\User::USERGROUP_SELF => \humhub\libs\BasePermission::STATE_DENY,
            ],
        ],
    ],
];

Not the first one with that problem: https://community.humhub.com/content/perma?id=240198

luke- commented 2 years ago

As far as I know, it is currently only possible to set the Predefined Permission for Space and User Profiles.

For Global Group Permissions this is currently not possible.

smashm commented 2 years ago

Thanks for your answer. That's a pity, but then at least I don't have to keep trying around and doubting myself. ;)