Context:
In the case where a resource has been retired or is no longer need it is useful to be able hide it from the UI resource lists. Resources can become difficult to delete when referenced by other things. For example, bookings made against the resource will create references to it and thus making it difficult to remove unless the bookings are removed as well
Suitable for: Admins
Objective: Make a resource invisible to non admins
Steps:
- Login to Calpendo using an account with 'Admin' role.
- Choose Admin/Permissions
- Expand Exists
- Create new and
- set Name of the permission such as 'Hide resource xyz'
- set Action to be 'Exists'
- set Data Type to be 'Resource'
- Add a condition for the permission as below in the conditions tab
- Value of self equals Fixed 'Resource name' (where you then select the name of the resource you wish to hide)
- Use the 'Applies to' tab to select specific user groups for whom this permission applies. If you select a user group here this means anyone not in that usergroup will not have that permission applied and will be able to see this resource.
- Use the 'Does Not Apply To' tab to choose users who should not have this permission applied to them. Typically it would be users with the root and admin roles.
- A suggested approach for a permission like this would be to leave 'Applies to' set to everyone and then use 'Does not apply to' to specify root and admin users as the only users who can see this