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: Check access rights for user/group for attributes in a module
Topic Summary:
Created On: 4-Aug-2006 23:39
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.
 4-Aug-2006 23:39
User is offline View Users Profile Print this message


Krishna Kandala

Posts: 170
Joined: 8-Jul-2006

Hi All,

I am trying to find the access rights for a specific user/group for all the attributes of a module. Even when I set the different access rights (for Attribute values) manually, I get the same ("RMD") value in the output. The code is attached. Please advise me where I am going wrong.
Thanks in advance
Report this to a Moderator Report this to a Moderator
 7-Aug-2006 17:17
User is offline View Users Profile Print this message


Chris Jones

Posts: 177
Joined: 1-Jul-2005

Odd...I get some weird results too. I gave a user read-only access to an attr value and tried the code. It prints "RMCDA" for him.....
I replaced the break statements with continues and got something even stranger. It prints "RMCDA" twice and then "R", almost as if it remembers past access settings. But then I changed it to "RM" and it printed "RMCDA" twice and then "RM", with no hint of the previous "R". So, I don't know what's going on. Maybe someone else can shed some light....

Chris
Report this to a Moderator Report this to a Moderator
 9-Aug-2006 14:58
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Your code needs to be aware of inherited access rights. You are only picking up access rights for the user if they have been set explicitly, but this includes rights he has inherited from the module or the "Everyone Else" group.

Try the following. This gives a good report of all access rights for attributes in the current module. You should be able to modify this to do what you want. Apologies to the author, but I don't know where I got it from.

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 10-Aug-2006 00:09
User is offline View Users Profile Print this message


Krishna Kandala

Posts: 170
Joined: 8-Jul-2006

Thanks Tony, for the script. I'd modify the same and work on my requirement.

- Krishna
Report this to a Moderator Report this to a Moderator
 15-Aug-2006 16:19
User is offline View Users Profile Print this message


Krishna Kandala

Posts: 170
Joined: 8-Jul-2006

Hi All,

Based on Tony's suggestion, I compiled the code for finding the existing access rights for a group. Any suggestions for improvement and detection of bugs are welcome.
- Krishna
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.