Roundup Tracker - Issues

Issue 1222135

classification
'roundup-admin security' doesn't give restricted properties
Type: Severity: normal
Components: Command-line interface Versions:
process
Status: closed fixed
:
: richard : richard
Priority: normal :

Created on 2005-06-16 19:11 by anonymous, last changed 2005-06-24 05:32 by richard.

Messages
msg1978 Author: [hidden] (anonymous) Date: 2005-06-16 19:11
'roundup-admin security' does not give the property restrictions on a 
permission.  It only gives the class restrictions.  Here is a patch 
which will enable roundup-admin security' to show property 
restrictions on a permission when they exist.

submitted by: Jason Grout (grout@math.byu.edu)

--- admin-original.py 2005-05-02 00:12:29.000000000 -0600
+++ admin.py    2005-06-16 13:08:47.000000000 -0600
@@ -1247,7 +1247,11 @@
             print _('Role "%(name)s":')%role.__dict__
             for permission in role.permissions:
                 if permission.klass:
-                    print _(' %(description)s (%(name)s for "%(klass)s" '
+                    if permission.properties:
+                        print _(' %(description)s (%(name)s for "%(klass)s" 
'
+                        ': %(properties)s only)')%permission.__dict__
+                    else:
+                        print _(' %(description)s (%(name)s for "%(klass)s" 
'
                         'only)')%permission.__dict__
                 else:
                     print _(' %(description)s (%(name)s)')%
permission.__dict__
msg1979 Author: [hidden] (richard) Date: 2005-06-24 05:32
Logged In: YES 
user_id=6405

I love what SF did to that patch. 
History
Date User Action Args
2005-06-16 19:11:49anonymouscreate