Content.currentUserHasPermission (Method)
Returns a Boolean flag which when true indicates that the current user has the permission for the page or image passed within the 'permission' argument.
Returns:
Boolean
Arguments:
Name | Type | Required | Description |
---|---|---|---|
pageID | PageIDImageIDMultimediaID | Required | A CommonSpot pageID as saved in sitepages table. |
permission | ContentPermission_Defined | Required | String identifying a content permission; for example, on of the following: 'Admin', 'Author', 'Edit', 'Read', and so on. |
Context:
License Requirements | None |
Permission Requirements | (none) |
Deny Context | None |
Require Context | None |
Author Lock | (not required) |
Transaction Logging | Transaction logging is disabled for this method |
Customization | This method may be customized at the site level |
Error Codes:
None
Notes:
None