UNPKG

@dasch-swiss/dsp-js

Version:

JavaScript library that handles API requests to Knora

39 lines (38 loc) 911 B
/** * Utility methods to facilitate the handling of permissions defined for a resource or value. * * @category Model V2 */ export declare namespace PermissionUtil { /** * Possible permissions on resources and values. */ enum Permissions { /** * restricted view */ RV = 0, /** * view permission */ V = 1, /** * modify permission */ M = 2, /** * delete permission */ D = 3, /** * change rights permission */ CR = 4 } /** * Given a user's highest permission, returns all included permissions. * * @param highestUserPermissionString the user's highest permission. */ const allUserPermissions: (highestUserPermissionString: ("RV" | "V" | "M" | "D" | "CR")) => PermissionUtil.Permissions[]; }