Access Policity Design

V

Vitamin

Does any one have some db design about access right?

for example:

Role | type A | type B | type C | type D | type E |
Action |
------------+---------------------------------------------------------
Task A | Yes | No | No | yes | No |
Task B | Yes | Yes | Yes | no | no |
Task C | No | No | No | No | No |
Task D | Yes | Yes | Yes | Yes | Yes |
 
M

Michel Walsh

Hi,


Yep.


Rights ' tableName
Action, Type ' field name


and, as record, just enumerate those that are "yes". I.E.: if the pair
(Action, Type) is not in the table, then the right is NO ( the role type
cannot perform the action task).



If 0=DCount("*", "Rights", "Action=""" & Action & """ AND type=" &
type & """" ) Then
... no access...
Else
... access...
End If



Hoping it may help,
Vanderghast, Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top