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: Module access Rights
Topic Summary:
Created On: 25-May-2004 16:27
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.
Answer This question was answered by Ross Morgan, on Wednesday, May 26, 2004 11:07 PM

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
 25-May-2004 16:27
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 26-May-2004 13:09
User is offline View Users Profile Print this message


Ross Morgan

Posts: 74
Joined: 15-Apr-2004

Answer 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
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 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 0 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.