Checks if a user has a certain permission on a content object
the user who is currently active
the permission to check
the content for which to check; if the permission if
ContentPermission.List
or ContentPermission.Create
the id will be
undefined
true if the user is allowed to do it
Checks if a user has a certain permission that is not associated with any object, but part of their general role.
the currently active user
the permission to check
true if the user is allowed to do it
Checks if a user has a certain permission on a temporary file
the currently active user
the permission to check
the file the user is trying to access; can be undefined if the the check is for TemporaryFilePermission.Create
true if the user is allowed to do it
Checks if a user has a certain permission on a user data object.
the user who is currently active
the permission to check
the content id to which the user data belongs
Optional
affectedUserId: string(optional) if the acting user tries to access user data that is not their own, the affected user will be specified here
true if the user is allowed to do it
Manages permissions of users.