Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Permissions for a user in multiple groups  (Read 5750 times)

0 Members and 1 Guest are viewing this topic.

amirw2k

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 37
Permissions for a user in multiple groups
« 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?
Logged

Nibbler

  • Guest
Re: Permissions for a user in multiple groups
« Reply #1 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.
Logged

Nibbler

  • Guest
Re: Permissions for a user in multiple groups
« Reply #2 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 20 queries.