Skip to main content

DeletePermission

Shared
Lyn.Role.DeletePermission(string role_name, string permission_name, function|nil callback)Function

Description

Difference between RemovePermission and DeletePermission:

  • RemovePermission sets the permission to false for the role.
  • DeletePermission removes the permission the role's permission table, which will make the permission follow the extended role's permission.

Params

  1. string role_name
  2. string permission_name
  3. function | nil callback

    Callback function when operation completes/fails.

    Callback params(s):

    1. string | nil err

      Error message if failed, or nil if successful.