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: Removing a particular permission from an Access Record
Topic Summary: Removing 'delete' permission from all groups in a module
Created On: 18-Jul-2008 13:49
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.
 18-Jul-2008 13:49
User is offline View Users Profile Print this message


Paul Howstan

Posts: 47
Joined: 27-Sep-2006

Hi,

I am trying to write a function that will allow me to remove 'delete' access from all access records in a module (except the 'DOORS Admin' group). The idea being that this will stop all other users of the module from being able to delete (and move?) the objects within the module.

The attached code is what I have so far, but it keeps causing an ACCESS VIOLATION ERROR and I can not see why. If I change the function to do the same but on objects instead, then it works.

Before running this code, you may want to change the 'DOORS Admin' group on line 43 to a group that you are part of so that access is not changed for your group.

Thanks in advance,

Paul Howstan
Report this to a Moderator Report this to a Moderator
 21-Jul-2008 12:11
User is offline View Users Profile Print this message


Paul Howstan

Posts: 47
Joined: 27-Sep-2006

Hi,

I've managed to avoid the 'crash' now, but it raises more questions.

The crash seems to be caused when you remove the control access from the group that is granting you control access to the module then try to loop to the next access record. I have added a skip list loop in to sort the access records depending on how much access they grant the current user. See attached code - Prioritise function.

This behaviour seems sensible, but why does it not behave the same way at the object level? I can remove control access to my group in the object loop and still remove access from other groups afterwards, but I can not do the same at module level.

Paul
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.