restricting permissions on issue properties
"Hernan M. F." <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.roundup.user |
|---|---|
| Message-ID | <[email protected]> |
Please apologize if this is a repeated question but I couldn’t find a solution.
For a new tracker I want to let them create/edit issues restricting them to
title, priority, msg and file (no restrictions on View.)
My last try at schema.py (chunk is included) throws an error that the user
can’t edit the issue (same thing when creating it) IF the user fills either
the msg or the file property. (roundup version 1.4.20.)
# Assign the access and edit Permissions for issue, file and message
# to regular users now
for cl in 'file', 'msg':
db.security.addPermissionToRole('User', 'View', cl)
db.security.addPermissionToRole('User', 'Edit', cl)
db.security.addPermissionToRole('User', 'Create', cl)
for cl in 'priority', 'status', 'keyword':
db.security.addPermissionToRole('User', 'View', cl)
db.security.addPermissionToRole('User', 'View', 'issue')
p = db.security.addPermission(name='Create', klass='issue',
properties=('title','priority','msg','file'))
db.security.addPermissionToRole('User', p)
p = db.security.addPermission(name='Edit', klass='issue',
properties=('title','priority','msg','file'))
db.security.addPermissionToRole('User', p)
Thanks in advance,
Hernán M. Foffani
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Roundup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/roundup-users