DtvLong dal_prt_chk_own (idn, tab)

Checks whether the current user is the owner of the record passed.

Input Parameters Significance
DtvLong idn ident number of the record
char *tab name the table of the record

Output Parameters Significance
none -

Return Code Significance
1 user is owner of the record
0 user is not owner of the record

When creating a new record, the current user of DataView automatically becomes the owner of the record. Only the owner of a record can control the access to the record for other users.

Using the function dal_iwf_frm_acc you can change the owner of a record in a special access form.

Users with manager privileges or group members with owner access also have the same access privilege as the owner of the record, i.e. the function delivers the return code > 1 < for this users, too.