Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

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

Is this all done?

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.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.67600 sec.)

We're Hiring!