![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Getting hold of inherited definition access rights Topic Summary: Created On: 26-Feb-2008 10:02 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I have a small script which loops through each view in a module, printing out the access rights on each view.
It works perfectly well on non-inherited access, but I can't figure out how to get hold of the access rights when inherited. I thought that by using get(v,null,msg) I'd get the default access rights for the view, but it returns only "Everyone: R". The equivalent code for non-inherited access rights also returns group access, e.g. "Productionisation: RMCD" yet this never appears for inherited access, even though i know it is set, as I can see it via View|Manage Views|Access. Attached (hopefully), is the snippet I'm interested in. Any help would be much appreciated. |
|
![]() |
|
![]() |
|
I have made a few changes to your code so that it prints the correct results.
Don't confuse default access (i.e. the Everyone else stuff) with inherited access. To get the inherited access rights you need to have "all" in the access record loop. This is not obvious and hard to spot in the manual. Hope this helps. PS. turn autodeclare off. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
Tony,
thanks very much, that's exactly what I needed. |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.