Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Restricting custom menu access
Topic Summary:
Created On: 22-Oct-2002 10:08
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 22-Oct-2002 10:08
User is offline View Users Profile Print this message


Andy Kimber

Posts: 1
Joined: 22-Oct-2002

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
Report this to a Moderator Report this to a Moderator
 22-Oct-2002 22:59
User is offline View Users Profile Print this message


Vincent Furman

Posts: 11
Joined: 22-Oct-2002

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
}
Report this to a Moderator Report this to a Moderator
 28-Oct-2002 16:22
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.