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

Example of default-permissions ist not working #59

Open
smashm opened this issue Mar 10, 2022 · 2 comments
Open

Example of default-permissions ist not working #59

smashm opened this issue Mar 10, 2022 · 2 comments
Labels
question Further information is requested

Comments

@smashm
Copy link

smashm commented Mar 10, 2022

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- luke- added the question Further information is requested label Mar 13, 2022
@luke-
Copy link
Contributor

luke- commented Mar 13, 2022

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
Copy link
Author

smashm commented Mar 14, 2022

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

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

No branches or pull requests

2 participants