Checks whether the current Teamwork user has access right to delete or modify a certain type of object.
bool ACAPI_TeamworkControl_HasDeleteModifyRight ( const API_Guid& objectId );
- [in] Unique identifier of the object
- The current user has sufficient privileges to delete or modify the given type of objects.
- The current user is not allowed to delete or modify the given type of objects.
For other common errors see the list of error codes.
Use this function to decide whether the current Teamwork user has right to delete or modify a given type of objects. The access rights are pre-set by the Project Administrator.
API_Guid objectSetGuid = ACAPI_TeamworkControl_FindLockableObjectSet ("FillTypes"); if (!ACAPI_TeamworkControl_HasDeleteModifyRight (objectSetGuid)) ACAPI_WriteReport ("You have insufficient privileges to modify/delete Fill Type attributes", true);
- Version: API 13 or later
- Header: ACAPinc.h