![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.