Sometimes your security needs to be more specific than just whether a Group or User can see, modify, or delete all records. It may depend on information in the record. For example, the Public Group should not see Deaccessioned objects, or the Social History Group should not modify Natural History Records. You can use the Depends Routine to determine what type of records that Groups or Users can (or can't) access.
You can type a Depends Routine into the Create, Delete, View, or Modify columns for Record or Field rights.
Argument syntax and parameters
For Object Datafile Security the argument is:
SE_OB_DEPENDS,arg2!arg3!arg4
arg2 |
Required |
Internal field name of the field to be checked, e.g. DEA for Deaccessioned. |
arg3 |
Required |
System ID of the term to check for. To check for multiple values, e.g. multiple departments, delimit the system IDs with an asterisk, e.g. 12*14*2 |
arg4 |
Optional |
If left blank, the Depends Routine will allow viewing, modifying, or deleting only the specified values. If set to 1, the Depends Routine will allow viewing, modifying, or deleting on all the values not specified. |
Hide Deaccessioned and Considered Item objects
SE_OB_DEPENDS,OB_STATUS!DEAC*CON!1
OB_STATUS is the fieldname for the Object Procedural Status.
DEAC and CON are the system IDs for the Deaccessioned and Considered Item Procedural Statuses.
The Depends Routine to prevent viewing Deaccessioned or Considered Items
Add this argument to all rights that depend on the record type. For example, if they cannot view Deaccessioned or Considered Items, they probably cannot modify those records either.
Hide objects with a Restriction Type
SE_OB_DEPENDS,RESTRICTION!1*CUL!1
Restriction is the fieldname for the Restriction Type.
1 and CUL are the system IDs for the Hazardous and Culturally Sensitive terms in the Restriction Type field.
Add this argument to all rights that depend on the Restriction Type fields. For example, if they cannot view Hazardous items, they probably cannot delete those records either.
You can use the Depends Routine for other datafiles, or more complex situations. Feel free to contact us at support@vernonsystems.com for more information.