Solved! Re: restricting permissions on issue properties

"Hernan M. F." <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.user
Message-ID <[email protected]>
Sorry, it was a silly mistake. The properties name in issue class are ‘messages’ and ‘files’
instead of ‘msg’ and ‘file’.

> 
> # 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)


------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.