User groups

Hi there,

I'm a long-time zenphoto user. But there is something I wonder about: Is there any possibility to use zenphoto together with user groups, e.g. one group for "family" and another group for "friends" and give them individual access on a per-album basis?

Comments

  • Certainly. Enable the user_groups plugin and have at it.

    Note of course, that User assignment to albums is only at the root album level.
  • Hi,

    I'm trying to get a setup like the OP describes. Fresh install of ZP 1.4.0.2 running on latest WAMP. user_groups plugin enabled.

    Made two root album and two groups based on the "album managers" template. Assigned one root album to each group. Then users have been assigned one of those two groups.

    Now users can't login, just gets straight back to the login box after clicking the login button (entering wrong password give normal error message).

    If I enable "View Gallery" for a group, then users are able to login, but can then of course view both root albums.

    Any advice getting this to work?

    Thanks:)
  • Most likely you have not given the users sufficient rights to do anything.
  • Ok, care to enlighten me where and how do I do that?

    My understanding is that it's the group membership that take care of this, so I thought that as long as I assign a user to a group with album rights the user will have access to the album? Not correct?
  • Certainly it (the group) does specify the rights, so the group rights have to be setup correctly.
  • Almost there:) Setup the group as below. User1 can now login and gets to the main page of the gallery. Has only access to Album1.

    However, User1 also sees all the other root albums.

    Is it possible to prevent that? So just the root album(s) the user has access to are displayed?

    Thanks.

    Here's how the group is defined.

    Group: Group1

    Rights:

    Albums
    View fullimage Upload Albums

    Gallery
    View Gallery Post comments Comments Themes

    General
    Overview

    Assign users
    User1

    Managed albums (1)
    Album1
  • Check again your rights. The group would at least also requrie Album rights (which must be set if the user has any managed albums.)

    Are the other root albums "public"? Anyone can view pubilc album.
  • What do you mean by "Album rights"? One specific setting? I thought I'd done that, since User1 only have access to Album1.

    All root albums are "private".

    Again, rights seems to be set correct. User1 only have access to Album1. User1 still see all root album, but can only access Album1. I'd like User1 to only see Album1 on the main page of the gallery.
  • I am unable to reproduce this. Some things to check:

    be sure you have verified the rights. For instance, the reason I asked about album rights is that it is impossible for there to be a managed album and that right not to be set. Yet you did not mention it. So also maybe you mised the view albums right?

    Are you running the static cache html plugin? If so it will cache pages from one user and then redisplay them for any viewer.
  • Sorry, still don't understand what you mean by "album rights"? One specific setting?

    The group is defined as I posted above. Any changes I need to do for the group?

    "View albums" isn't checked and if it's checked User1 can access all albums (as expected, so unchecked that right again).

    Not running static cache html plugin.

    Again, with the group defined as posted earlier, User1 have access only to Album1.

    However, after login to main gallery page, User1 also sees the thumbnails for the other albums, but clicking on any of those, User1 don't have access and a login box is displayed.

    So only (minor) issue is that User1 sees thumbnails of all albums, not just the one that the user manages and have access to.

    Since you're not able to reproduce this, does that mean you've setup a group defined as mine above? And users assigned to that group only see the thumbnail of the album they manage on the main gallery page?
  • It sounds like things are working correctly for you. Please remember that protection and publication are different things.
  • Thanks for taking time to help:)

    I'd also be thankfull if such a feature would be implemented in a later version of ZP.

    Since assignment to albums are given at root album level, at least for our gallery, the main page becomes a bit messy due to several different groups sharing the same gallery.
  • acrylian Administrator, Developer
    I am not sure what you mean or if you understood. Sbillard refers to the difference between a user assigned to an album to manage it and view protection.

    If you want to protect albums for the public / other users you have to set passwords for them as well. In that case only the logged in user that has rights to that album should be able to see it.

    I am sure sbillard will respond later, too.
  • If you are speaking of how to properlly mask albums from view, it is both implemented and well explained. Perhaps you should read some of our documentation. Particularly the troubleshooting guide and the article http://www.zenphoto.org/2009/03/troubleshooting-zenphoto/#46
  • When I earlier read about not published albums it says: "People have to “know about” these items to view them. (That is they need to know the URL.)" hence I assumed not published albums wouldn't show up on the main gallery page.

    Just tried, and they show up, so thanks, works now.
  • They do not show up except to users authorized to see them.
Sign In or Register to comment.