Administrators can forbid access to albums for users using permissions. Albums can be public or private. Permissions can only be set for private albums.
Prior to Piwigo 2.2, albums were known as categories. This is just a change of name and the concept and functionality remains exactly the same.
The first step is to make the desired albums private. You have two ways of switching the album from public to private:
At creation an album can be public or private depending on configuration and parent album:
$conf['newcat_default_status']
if the parent album is public. This configuration parameter must be set in the include/config.inc.php
file.When editing album access status, automatic rules are applied :
Let's have an example, shown in next screenshots. At beginning, all albums (categories on screenshots) are public:
Then you decide to set {animals » cat} (the selected album above) to private
All children albums become private automatically. Then, you decide that {animals » cat » 8 weeks} must in fact be public :
All parent albums become public automatically. The parent albums of {animals » cat » 8 weeks} are {animals » cat} (previously private) and {animals} (which was already public)
Permissions are managed by group or by user. For a private album, permissions tell whether the user (or users belonging to the group) can view the album.
Two screens let you modify permissions :
Here follows a list a rules used: