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: Checking access rights
Topic Summary: How are access rights captured within DXL?
Created On: 3-Sep-2008 10:31
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.
 3-Sep-2008 10:31
User is offline View Users Profile Print this message


Mark Williamson

Posts: 79
Joined: 12-Sep-2005

Hello All,

I have three folders each containing a template module which is copied to create a new module with user provided module attributes via the DB.

Each folder has access rights defined as R for users that do not have create authority and when the code is executed with a non authorised user the following DXL error is displayed:

-R-W- DXL: <C:\Documents and Settings\Mark Williamson\My Documents\DOORS\My DXL\TTG\includes\Create Adhoc Test.inc:59> duplicating module 'Test Module template' fails: No such file or directory


I wish to capture the fact that the user has no create rights in this folder and exit cleanly but every combination of the canCreate perm I have tried against the folder or module returns that the user has access, even though the properties of the module and folder are R only.

Am I missing something obvious?

Thanks

Mark

-------------------------

mark_williamson@synthesys.co.uk
http://www.synthesys.co.uk
----------------------------------------
Report this to a Moderator Report this to a Moderator
 3-Sep-2008 11:35
User is offline View Users Profile Print this message


Paul Howstan

Posts: 47
Joined: 27-Sep-2006

Hi Mark,

I have some functions (attached) to test the access rights of objects and modules. The same should be easy to do for Projects and Folders.

These functions use the AccessRec data type instead of canControl, canEdit etc. I think you should be able to adapt HasControl(Module m) to being a HasControl(Project p) or HasControl(Folder f) easy enough. As with noraml DOORS access rights, the individual user access rights override any group rights.

Hopefully, this will give you a more reliable result the canControl.

Paul
Report this to a Moderator Report this to a Moderator
 3-Sep-2008 13:07
User is offline View Users Profile Print this message


Mark Williamson

Posts: 79
Joined: 12-Sep-2005

Hi Paul,

Many thanks for your post. I had tried using the AccessRec data type but had not managed to get the perm just right. I amended your HasCreate function for folder and called the function prior to the module copy and it works a treat.

Thanks very much. DXL learning curve is still pretty steep.

Regards

Mark

-------------------------

mark_williamson@synthesys.co.uk
http://www.synthesys.co.uk
----------------------------------------
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.