This is an old revision of the document!
Administrators can forbid access to categories for users. This is what we call permissions or authorizations in PhpWebGallery. Categories can be public or private. Permissions can only be set for private categories.
So, the first is to make the desired categories private. You have two ways for switching categories to private :
At creation, a category can be public or private, depending on configuration and parent category :
$conf['newcat_default_status']
if parent category is public. This configuration parameter must be set in include/config.inc.php
file.When editing category access status, automatic rules are applied :
Let's give a simple example, shown in next screenshots. At beginning, all categories are public :
Then you decide to set {animals » cat} (the selected category above) to private
All children categories become private automatically. Then, you decide that {animals » cat » 8 weeks} must in fact be public :
All parent categories become public automatically. The parent categories 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 category, permissions tell whether the user (or users belonging to the group) can reach the category.
Two screens let you modify permissions :
Here follows a list a rules used by PhpWebGallery concerning permissions