• Check whether has the specified permission set for the current user

    Parameters

    • permissionSetName: string

      the permission set name

    Returns boolean

    Example


    import * as ps from 'permission';

    let permission_set_name = "edit_account"
    let ok = ps.hasPermissionSet(permission_set_name)