Enables scripted content fragments to use Permissions
Methods
Get
Get Overload 1
Obsolete in 11.0. Use $core_v3_permission.Get(...) instead.
Velocity
#set($permissionCheckResponse = $core_v2_permission.Get($permissionId, $userId))
JavaScript
var permissionCheckResponse = core_v2_permission.Get(permissionId, userId);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
permissionId | Guid | Permission Id | Required | ||
userId | Int32 | User Id | Required |
Get Overload 2
Obsolete in 11.0. Use $core_v3_permission.Get(...) instead.
Velocity
#set($permissionCheckResponse = $core_v2_permission.Get($permissionId, $userId, $contentId, $contentTypeId))
JavaScript
var permissionCheckResponse = core_v2_permission.Get(permissionId, userId, contentId, contentTypeId);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
permissionId | Guid | Permission Id | Required | ||
userId | Int32 | User Id | Required | ||
contentId | Guid | Content Id | Required | ||
contentTypeId | Guid | Content Type Id | Required |
Get Overload 3
Obsolete in 11.0. Use $core_v3_permission.Get(...) instead.
Velocity
#set($permissionCheckResponse = $core_v2_permission.Get($permissionId, $userId, $entityId, $entityTypeId, $entityPermissionType))
JavaScript
var permissionCheckResponse = core_v2_permission.Get(permissionId, userId, entityId, entityTypeId, entityPermissionType);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
permissionId | Guid | Permission Id | Required | ||
userId | Int32 | User Id | Required | ||
entityId | Guid | Entity Id | Required | ||
entityTypeId | Guid | Entity Type Id | Required | ||
entityPermissionType | String | Entity Permission Type | Required |
Get Overload 4
Gets a role
Velocity
#set($permissionCheckResponse = $core_v2_permission.Get($application, $id, $roleId, $permissionId))
JavaScript
var permissionCheckResponse = core_v2_permission.Get(application, id, roleId, permissionId);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
application | String | Application | Required | ||
id | Nullable of Int32 | Id | Required | ||
roleId | Int32 | Role Id | Required | ||
permissionId | String | Permission Id | Required |
Get Overload 5
Gets a role
Velocity
#set($permissionCheckResponse = $core_v2_permission.Get($application, $id, $roleId, $permissionId, "%{ Include = $includeArg }"))
JavaScript
var permissionCheckResponse = core_v2_permission.Get(application, id, roleId, permissionId, { Include: includeArg });
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
application | String | Application | Required | ||
id | Nullable of Int32 | Id | Required | ||
roleId | Int32 | Role Id | Required | ||
permissionId | String | Permission Id | Required | ||
Include | String | Include | Optional | denied, granted |
Get Overload 6
Gets a role
Velocity
#set($permissionCheckResponse = $core_v2_permission.Get($applicationTypeId, $applicationId, $roleId, $permissionId, "%{ Include = $includeArg }"))
JavaScript
var permissionCheckResponse = core_v2_permission.Get(applicationTypeId, applicationId, roleId, permissionId, { Include: includeArg });
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
applicationTypeId | Guid | Application Type Id | Required | ||
applicationId | Guid | Application Id | Required | ||
roleId | Int32 | Role Id | Required | ||
permissionId | String | Permission Id | Required | ||
Include | String | Include | Optional | denied, granted |