forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: amirw2k on December 10, 2005, 05:30:16 am

Title: Permissions for a user in multiple groups
Post by: amirw2k on December 10, 2005, 05:30:16 am
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?
Title: Re: Permissions for a user in multiple groups
Post by: Nibbler on December 10, 2005, 01:01:35 pm
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.
Title: Re: Permissions for a user in multiple groups
Post by: Nibbler on December 10, 2005, 05:06:23 pm
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.