Share via


SP.BasePermissions.has Method (sp.js)

Determines whether the current instance has the specified permission.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

SP.BasePermissions.has()

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.