Ezio Melotti <[email protected]> added the comment:
The attached patch should enable developers to reclassify spam.
I'm not sure what's the best way to test it though (I would need either a
spammy message and a non-coordinator account).
----------
assignedto: -> ezio.melotti
_______________________________________________________
PSF Meta Tracker <[email protected]>
<http://psf.upfronthosting.co.za/roundup/meta/issue120>
_______________________________________________________
Index: schema.py
===================================================================
--- schema.py (revision 88963)
+++ schema.py (working copy)
@@ -254,9 +254,9 @@
p = db.security.addPermission(name='View', klass=cl,
description="Allowed to see content of
object regardless of spam status",
properties = ('content', 'summary'))
-
- db.security.addPermissionToRole('User', p)
-
+
+ db.security.addPermissionToRole('User', p)
+
spamcheck = db.security.addPermission(name='View', klass=cl,
description="allowed to see content
if not spam",
properties=('content', 'summary'),
@@ -316,7 +316,7 @@
# Coordinator permissions
##########################
for cl in ('issue_type', 'severity', 'component',
- 'version', 'priority', 'stage', 'status', 'resolution', 'issue',
+ 'version', 'priority', 'stage', 'status', 'resolution', 'issue',
'file', 'msg', 'hgrepo'):
db.security.addPermissionToRole('Coordinator', 'View', cl)
db.security.addPermissionToRole('Coordinator', 'Edit', cl)
@@ -326,6 +326,7 @@
db.security.addPermissionToRole('Coordinator', p)
db.security.addPermissionToRole('Coordinator', 'SB: May Classify')
+db.security.addPermissionToRole('Developer', 'SB: May Classify')
# May users view other user information? Comment these lines out
# if you don't want them to
_______________________________________________
Tracker-discuss mailing list
[email protected]
http://mail.python.org/mailman/listinfo/tracker-discuss