![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Restricting custom menu access Topic Summary: Created On: 22-Oct-2002 10:08 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I've got a custom menu at the DOORS Explorer level that I only want the Administrator user to be able to use. Is there any way I can restrict access based on user name?
Thanks Andy ++++ Email me ![]() |
|
![]() |
|
![]() |
|
try this in your dxl script
string uName = doorsname User user = find(uName) UserClass uClass = user.class if (uClass == administrator) { infoBox "Add the script you want to run to this area" }else{ ack "Not Authorized to run this script" halt } |
|
![]() |
|
![]() |
|
Furman's code will prevent everybody except the "administrator" from RUNNING the script; thus preventing disaster from honest but clumsy/forgetful folk. See also "User class constants" in the online DXL manual; notably "databaseManager".
Be advised, however, that any evil dunce can find the code and remove the check and will be able to run it. To make the menu itself INVISIBLE to everybody except the "administrator" you will need to modify the "formal.dxl" file (somewhere in $home\lib\dxl\...), and play around with the "insert menu" and "standard item" commands; adding Furman's check as you go; good luck. A better alternative is to put your special DXL in its own folder, and only tell the Administrators to update the Registry entries for "addins" to point to that new directory; also good luck. Or, just put the code ONLY on the Server's local hard drive and let them run it via the >>Tools>>Edit DXL command. Or find some way to make the files themselves "R" to only trusted users; everybody else has no "R" access. - Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Restricting custom menu access
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.