BaseRESTServiceIsAuthorizedForObject Method (String, String, PermissionsEnum) |
Returns true if current user is granted with specified permission to process operation on the given objecttype.
Namespace: CMS.WebServicesAssembly: CMS.WebServices (in CMS.WebServices.dll) Version: 8.2.23
Syntax protected bool IsAuthorizedForObject(
string objectType,
string objectSite,
PermissionsEnum permission
)
Parameters
- objectType
- Type: SystemString
Object type of an object - objectSite
- Type: SystemString
Site the object belongs to - permission
- Type: CMS.DataEnginePermissionsEnum
Permission type
Return Value
Type:
BooleanSee Also