Athento allows inheriting the permissions from a parent folder so that they are applied to all its child folders. To do this, the command inherit_folder_permissions is used.
This command accepts a single argument:
- –date (DD-MM-YYYY): date from which folders or folderish content are reviewed. The command takes as a reference the permissions creation date in those folders; if there is no record of permissions creation, it uses the folder or folderish creation date. For example, –date 01-01-2000 will take into account all folders and folderish whose permission creation date is after 01-01-2000.
python manage.py inherit_folder_permissions --date 01-01-2000
For example, starting from a parent folder:
and a child folder:
Once the command has been executed, the parent folder remains the same and the child folder inherits the permissions from the parent, ending up with these permissions:
Note: permissions are only added; permissions are never removed from child folders.