SP.BasePermissions.has(perm) Method
Applies to: SharePoint Foundation 2010
In this article
Return Value
Remarks
Applies To
Determines whether the current instance has the specified permission.
var value = SP.BasePermissions.has(perm);
Parameters
perm
Type: SP.PermissionKind
One of the enumeration values that specifies the permission to check.
Return Value
Type: boolean
true if the current instance has a specified permission; otherwise, false.
Remarks
This method checks the current instance to determine whether it has the specified permission.