Task #5137 (closed)
Opened 13 years ago
Closed 10 years ago
Add CLI @admin_only decorator
Reported by: | jamoore | Owned by: | sbesson |
---|---|---|---|
Priority: | minor | Milestone: | 5.1.0-m3 |
Component: | General | Version: | 5.0.5 |
Keywords: | n.a. | Cc: | |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description
A method like in ldap.py:
def active(self, args): ....
requires a try/finally block looking for a SecurityViolation. Instead, marking the method @admin_only could provide a central place to handle this logic.
Change History (2)
comment:1 Changed 10 years ago by jamoore
- Milestone changed from Unscheduled to 5.1.0-m3
- Owner set to sbesson
- Version set to 5.0.5
comment:2 Changed 10 years ago by sbesson
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
Is this all done?