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

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

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.