AlexSheer / phpbb3.2-Knowledge-Base

Knowledge Base
GNU General Public License v2.0
1 stars 5 forks source link

KB permissions are only effective for the default group of users #28

Open Galixte opened 6 years ago

Galixte commented 6 years ago

Hi @AlexSheer,

there is an issue with group permission, especially for the default group.

On my test board, if a user is in many groups, and if there are some KB permissions applied to his default group, it’s take in consideration, no problem the user can use these permissions.

But, for example, if I have a user in:

And if I only apply KB permissions to the “Registered users” group, this user can’t use the KB because his default group “Special” hasn’t any KB permission.

Galixte commented 6 years ago

@AlexSheer, this issue is prejudicial especially if there are a lot of groups, i expect you’ll fix too. ;)

AlexSheer commented 6 years ago

It seems to me logical. Group permissions by default override the permissions of other groups

Galixte commented 6 years ago

@AlexSheer I have a lot of groups and categories.

All my users are in the default phpBB group: “Registered users”. And all my board users have a default group set to VIP, newers, etc., etc.. (between 20/30 supplementaries groups).

It could be useful to only set the KB user permissions to the “Registered users”, instead to have to set for each supplementary group because currently the logic for KB permissions it’s to set the default group of each user.

For example, with phpBB permissions, if a user A is in two group:

With KB permissions logic, currently I have to set the default group of user A, so “VIP” group and same situation for all other users.

Imagine one second, the time that I spend when you have an amount of group, like 20, 30, etc. and same number of categories… Moreover this issue isn’t solved: https://github.com/AlexSheer/phpbb3.2-Knowledge-Base/issues/23, so I have to check each permission for each category, while with phpBB permissions I can select all category and selection only permissions to one of these to apply the same permissions for all categories… I can to tell you the time spent to set permissions for all my board users is too bad.

That’s why I think, it’s a true issue. ;)