comparison roundup/admin.py @ 7379:40cab56a97f1

Document that security subcommand reports invalid properties.
author John Rouillard <rouilj@ieee.org>
date Mon, 22 May 2023 11:17:17 -0400
parents 9bd7ed918121
children 6480443c2607
comparison
equal deleted inserted replaced
7378:b4ac699c6282 7379:40cab56a97f1
1630 1630
1631 def do_security(self, args): 1631 def do_security(self, args):
1632 ''"""Usage: security [Role name] 1632 ''"""Usage: security [Role name]
1633 1633
1634 Display the Permissions available to one or all Roles. 1634 Display the Permissions available to one or all Roles.
1635 Also validates that any properties defined in a
1636 permission are valid.
1637
1638 Run this after changing your permissions to catch
1639 typos.
1635 """ 1640 """
1636 if len(args) == 1: 1641 if len(args) == 1:
1637 role = args[0] 1642 role = args[0]
1638 try: 1643 try:
1639 roles = [(args[0], self.db.security.role[args[0]])] 1644 roles = [(args[0], self.db.security.role[args[0]])]

Roundup Issue Tracker: http://roundup-tracker.org/