Album restrictions

I'm wondering how restrictions are placed on the albums (allowing only certain users to view them). I had a resource creating and dumping images into albums not using the zen photo framework. However, I still want to password protect these albums...can this be done?

Comments

  • Thanks for the response. I understand the user rights and permissions. However, I'm not setting up these albums within the admin section of zen photo. It is another site entirely that is feeding the folders and files. I was hoping there would be a way to set users access to specific albums without having to use the admin tool. Any help would be greatly appreciated.
  • If you understand the rights and permissions then you have the tools to deal with your situation. If your resource does dump files and folders into properly designated places you should have no issue.

    Zenphoto has the option of defaulting the "published" setting of new items to not plublished. It also has the option to make a gallery private.

    But short of those two options, newly arrived items are public.

    And of course, Zenphoto has no way of anticipating what users should be allowed to access a previously unknown item unless it is placed in an album that already has these restrictions defined.
  • My apologies but I've been going through the doc and can't find the correct function to set the restrictions.

    if ($album->exists) {
    $album->setTitle($name);
    $album->save();
    exit();
    }

    this is the code I will use to create the albums. I just need to add the last object modifier to create a user name and password...right?
  • how about `$album->setUser()` and `$album->setPassword()`. Both part of the album object and its ancestry same as where you found `setTitle()`
  • I should have checked the ancestry. Sorry for wasting your time.
Sign In or Register to comment.