SP.BasePermissions.hasPermissions Method (sp.js)
Determines whether the current instance has the specified set of permissions.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
SP.BasePermissions.hasPermissions()
Return value
Type: Boolean
true if the current instance has the specified set of permissions; otherwise, false.
Remarks
The permissions represented by the current instance are a bitmasked 64-bit value that is represented by two 32-bit integer values on the client.
Parameters
high
low