userHasContentPermission

userHasContentPermission

Syntax

userHasContentPermission(permissionType, pageId, userNameOrKey[, ignoreInherited])

Package

Alias

Pkg Usage

Description

Checks if a user has the specified content permission.

Parameters

Parameter name

Type

Required

Description

permissionType

String

Yes

Permission type to check. A list of values is provided below.

pageId

Number

Yes

The ID of the page to check permission for.

userNameOrKey

String

Yes

User name or key of a user to check permission for.

ignoreInherited

Boolean

No

Set to true to ignore inherited permissions. The default value is false.

Return Type

Boolean (true/false)

Example

Checks if user "jdoe" is allowed to edit page with ID 11508.

userHasContentPermission("Edit", 11508, "jdoe");

See also

Need support? Create a request with our support team.

Copyright © 2005 - 2025 Appfire | All rights reserved.