plane
plane copied to clipboard
[WEB-3286] fix: allow admins to delete other admins views
Description
This PR will allow admins to delete a view created by other admins
Summary by CodeRabbit
-
Refactor
- Adjusted deletion permissions to restrict this action to administrators and members, enhancing the overall security and ensuring that only authorized users can perform deletions.
Open to other suggestions on how to improve this.
I realize this overloads what the hint argument is used for as a per-item attribute. https://docs.rs/cliclack/latest/cliclack/struct.MultiSelect.html#method.item
However, any subsequent 'correct' use of the hint will also fix the same problem.