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: Album permission for multiple user groups  (Read 6747 times)

0 Members and 1 Guest are viewing this topic.

carterb

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Album permission for multiple user groups
« on: October 07, 2013, 10:15:46 am »

Hi everybody -

I'm currently adapting the album permissions on my coppermine. What I want to achieve is, that multiple user groups have the permission to view/change one album. In the current version, coppermine only supports one group per album.

What I already did:
  • To store multiple group permissions in the cpg15x_albums database, I changed the field to varchar and adapted the read/write progress in modifyalb.php to store the different group permissions comma separated (see attachment).
  • Adapted the album properties dialog (see attachment).

To-Do:

Now I need to adapt the various processes, that read out the permissions. Thats the point where I need some help.
  • Locate all these processes.
  • Get hints on how to adapt them.

Any help is welcome.

Cheers,
Oliver
Logged

carterb

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Album permission for multiple user groups
« Reply #1 on: October 07, 2013, 01:10:48 pm »

Hi again -

I saw that the feature is planed for V1.6. Maybe I can support the developers with my work.

PS.: Maybe the thread should be moved to cpg1.5 permissions, sorry for that!

Cheers,
Oliver
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Album permission for multiple user groups
« Reply #2 on: October 07, 2013, 01:15:32 pm »

We definitely need a more granular permissions system so any help coding such is always much appreciated.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

carterb

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Album permission for multiple user groups
« Reply #3 on: October 07, 2013, 01:31:32 pm »

Hi again -

I'm willing to help. Maybe anyone could tell me (or give me a hint to documentation) where I can find the processes, that read out the visibility field. I also do not really understand how the visibility field is analyzed yet.

Question is, if there is a more detailled plan on how the permissions should be adapted?

Cheers,
Oliver
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Album permission for multiple user groups
« Reply #4 on: October 07, 2013, 03:59:03 pm »

I was never happy that Coppermine's database violates the first normal form, but that's out of focus for this mod.

For a start, we should have a closer look at the variables $RESTRICTEDWHERE and FORBIDDEN_SET_DATA and how exactly they're populated, as they're used at least for the thumbnail, intermediate-sized and full-sized view. Maybe they also effect the album view.
Logged

carterb

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Album permission for multiple user groups
« Reply #5 on: October 07, 2013, 04:11:03 pm »

Hi -

Ok, I also figured out that $FORBIDDEN_SET_DATA should be interesting. I will have a look at it tonight.

Cheers,
Oliver
Logged

carterb

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Album permission for multiple user groups
« Reply #6 on: March 25, 2014, 09:55:35 pm »

Hi all -

After some months without any chance to work on the coppermine, I will now be able to spend some time.
Please let me know if any further development has already started. Otherwise I go back to the $RESTRICTEDWHERE and $FORBIDDEN_SET_DATA...

Cheers,
Oliver
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Album permission for multiple user groups
« Reply #7 on: March 27, 2014, 01:24:27 pm »

As far as I know nobody worked on this mod. The Coppermine core code hasn't changed in that aspect.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.