![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Module access Rights Topic Summary: Created On: 25-May-2004 16:27 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Module m = current string rightsString = null if (hasPermission(m,read)) { rightsString = rightsString "R" } if (hasPermission(m,modify)) { rightsString = rightsString "M" } if (hasPermission(m,create)) { rightsString = rightsString "C" } if (hasPermission(m,delete)) { rightsString = rightsString "D" } if (hasPermission(m,control)) { rightsString = rightsString "A" } if (null rightsString) { rightsString = "None" } User currentUserNow = find() string currentUserNameNow = currentUserNow.name print "Access rights for " currentUserNameNow ": " rightsString | |
![]() |
|
In the middle of the Module Properties screen there is a blurb describing the rights the current user has to the module. This information is NOT the same as the "canModify, canControl" DXL commands, which represent what the user can do at the moment.
I'd rather not plow through the AccessRecords for the module, seeing if the user is in the groups, and accumulating the "most" rights for the user. Is there a command to get these rights? - Louie |
|
![]() |
|
![]() |
|
Module m = current
string rightsString = null if (hasPermission(m,read)) { rightsString = rightsString "R" } if (hasPermission(m,modify)) { rightsString = rightsString "M" } if (hasPermission(m,create)) { rightsString = rightsString "C" } if (hasPermission(m,delete)) { rightsString = rightsString "D" } if (hasPermission(m,control)) { rightsString = rightsString "A" } if (null rightsString) { rightsString = "None" } User currentUserNow = find() string currentUserNameNow = currentUserNow.name print "Access rights for " currentUserNameNow ": " rightsString |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Module access Rights
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.