coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 permissions => Topic started by: carterb on October 07, 2013, 10:15:46 AM

Title: Album permission for multiple user groups
Post by: carterb 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-Do:

Now I need to adapt the various processes, that read out the permissions. Thats the point where I need some help.

Any help is welcome.

Cheers,
Oliver
Title: Re: Album permission for multiple user groups
Post by: carterb 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
Title: Re: Album permission for multiple user groups
Post by: phill104 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.
Title: Re: Album permission for multiple user groups
Post by: carterb 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
Title: Re: Album permission for multiple user groups
Post by: ΑndrĂ© 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.
Title: Re: Album permission for multiple user groups
Post by: carterb 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
Title: Re: Album permission for multiple user groups
Post by: carterb 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
Title: Re: Album permission for multiple user groups
Post by: ΑndrĂ© 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.