Permission API

flask_acl.permission.is_permission_in_set(perm, perm_set)[source]

Test if a permission is in the given set.

Parameters:
  • perm – The permission object to check for.
  • perm_set – The set to check in. If a str, the permission is checked for equality. If a container, the permission is looked for in the set. If a function, the permission is passed to the “set”.
flask_acl.permission.parse_permission_set(input)[source]

Lookup a permission set name in the defined permissions.

Requires a Flask app context.

Related Topics

This Page