Permissions for a user in multiple groups Permissions for a user in multiple groups
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Permissions for a user in multiple groups

Started by amirw2k, December 10, 2005, 05:30:16 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

amirw2k

This is an obscure one.

I'm trying to find out how coppermine deals with users that are members of multiple usergroups. This can happen in bridged galleries which means a user can belong to two groups, and each group can have overlapping permissions.

For example, different number of text boxes for upload, different permissions for private galleries, permissions for viewing an album, etc.

Can anyone tell me how can I know which of the groups the user is in is the one that matters? I'm sure that the user isn't getting the highest permission he can get, because I tried to give one group 7 upload boxes, and the other 5 upload boxes. It didn't change anything. Only changing a specific group made the difference and I have a feeling that all the other groups aren't effecting anything. The worst thing is that I have no idea how to determine the "main group" that gives the user his permissions.

Any ideas?

Nibbler

Users should get the best permissions of all groups they are in (see core_udb::get_user_data() in bridge/udb_base.inc.php) Unbridged Coppermine supports multiple groups too.

Nibbler

Also see http://forum.coppermine-gallery.net/index.php?topic=24903.0

Let me know what you are bridged to and I'll check how the primary group is determined.