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: Getting hold of inherited definition access rights
Topic Summary:
Created On: 26-Feb-2008 10:02
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.
 26-Feb-2008 10:02
User is offline View Users Profile Print this message


Alan Gooch

Posts: 107
Joined: 30-Aug-2005

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.
Report this to a Moderator Report this to a Moderator
 26-Feb-2008 11:07
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 26-Feb-2008 12:21
User is offline View Users Profile Print this message


Alan Gooch

Posts: 107
Joined: 30-Aug-2005

Tony,

thanks very much, that's exactly what I needed.
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.