![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
Thanks Tony, for the script. I'd modify the same and work on my requirement.
- Krishna |
|
![]() |
|
![]() |
|
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 |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.