property Hierarchy.viewers : MutableSet[str]
visible is True if and only if at least one of the roles of the current user is included in this set.
Example
-
Without security:
Each hierarchy is visible by default:Hiding the hierarchy from all users:
-
With security:
Each hierarchy is visible by default:Setting up a non-admin user:John has ROLE_USER which is in
viewersso the hierarchy is visible to him:Making the hierarchy visible to admins only:Hiding the hierarchy from all users: