Input Parameters | Significance |
DtvLong idn | ident number of the record |
char *tab | name the table of the record |
char acc |
access privilege to be checked: r = read w = write d = delete |
Output Parameters | Significance |
none | - |
Return Code | Significance |
1 | access granted. |
0 | access not granted. |
Each record in DataView has an owner, an owner group, and a current access privilege for the owner, the owner group, and the world (all users in the system).
The privilege check inspects the access privilege of the record based on its user assignment. This means that for the owner of the record only the owner privilege is checked, while for the group members the group privilege, and for all others the world privilege is checked. Depending on the setting, it is well possible that the owner of a record has no access, but a group member has.
The access is granted if the requested access privilege for the current user is the same or higher than the one assigned to the record ('d' >= 'w' >= 'r').