hasPermission

The hasPermission() perm is documented for use with electronic signatures, but there are other variants for checking a user’s access on items, views and attributes, that are not documented. Here is a list of these undocumented perms.

// In each case, the first parameter is the user name.
// The third parameter is the permission you are checking for.
// This can one of the following:
// none
// read
// modify
// create
// delete
// control (called admin in the GUI)

bool hasPermission(string, Group, Permission)
bool hasPermission(string, View, Permission)
bool hasPermission(string, Object, Permission)
bool hasPermission(string, ModName_, Permission)
bool hasPermission(string, Module, Permission)
bool hasPermission(string, Folder, Permission)
bool hasPermission(string, Project, Permission)
bool hasPermission(string, Item, Permission)

// You can check for permissions on attribute values and definitions
// using the following:

bool hasValPermission(string, AttrDef, Permission)

bool hasDefPermission(string, AttrDef, Permission)