humhub / humhub/documentation

Example of default-permissions ist not working

Open
#59 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
JavaScript
Stars
10
Forks
79
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the default-permissions section at https://docs.humhub.org/docs/admin/permissions/#default-permissions and compare its common.php example with the reported permission-table result. Review the linked community discussions to determine the correct configuration and expected behavior, then update the documentation so the example works and its result is clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.