![]() |
|
Restricting read/write access to albums based on user groups - Am I too stupid? - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Restricting read/write access to albums based on user groups - Am I too stupid? (/thread-7266.html) |
Restricting read/write access to albums based on user groups - Am I too stupid? - joe821 - 2010-06-27 I want to implement two use cases and I was unable to do so: VISIBILITY OF ALBUMS
What I did:
Then I got stuck: The only way to implement the use case was to forget the site registration and just distribute the username/pass for each user. Any better idea? The alternative was that I give each group ADMIN access to the respective album which then allows to see the album but has the undesirable side effect of being able to edit it, too. Any idea, how I could implement something resembling normal role-based access? (assign friends to FRIENDS group and give FRIENDS group read (but not write) access to friends album? Restricting read/write access to albums based on user groups - Am I too stupid? - kagutsuchi - 2010-06-27 The easiest way I can think of to implement this is to create two user groups: one for family and one for friends. Make the family group have the family album as a managed album and the opposite for friends. Then, unpublish both albums. It should work out that only the members of the family group can see the family album and the opposite for friends. This should work because unpublished albums are hidden from users who don't have access. As long as the user is a member of the respective group, he can see the album because of the group's access. I believe this method will also not yield access to editing the album, though. The only drawback of this method is that you'll have to manually assign each user to the respective group. But I think that would be necessary no matter what method. Restricting read/write access to albums based on user groups - Am I too stupid? - sbillard - 2010-06-28 please also see http://www.zenphoto.org/2009/03/troubleshooting-zenphoto/#46 Restricting read/write access to albums based on user groups - Am I too stupid? - joe821 - 2010-06-28 Thanks a lot for the fast reply. Somehow I was unable to 'implement' your proposal: Using this approach, my friends had admin rights and would have been able to delete albums. I guess my fundamental misunderstanding is that I want to manage the access rights of "users" while I think ZenPhoto only allows managing access rights for admins. I will now remove my users and use plain username/password pairs per album. I guess I am too paranoid to fit into the "normal web-album users" category... Never mind & thanks a lot for the instant support! Restricting read/write access to albums based on user groups - Am I too stupid? - kagutsuchi - 2010-06-28 Did you give the groups rights? The groups don't need any rights just to view albums; simply having the respective album as a managed album should be sufficient. Restricting read/write access to albums based on user groups - Am I too stupid? - kagutsuchi - 2010-06-28 Also see http://www.zenphoto.org/2008/07/an-overview-of-zenphoto-users/ for more info on user/group rights. |