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: 12.0.0
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