Message1978
'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__
|
|
Date |
User |
Action |
Args |
2009-02-03 14:21:23 | admin | link | issue1222135 messages |
2009-02-03 14:21:23 | admin | create | |
|