Skip to content
This repository

By default all permissions are considered defined. user.may_do_something_undefined? returns false instead of raising an error.

You can change this behavior with the missing_action_means directive:

class Permission < Aegis::Permissions
  missing_action_means :error
end

Possible arguments are:

- :default_permission: Fall back to the role’s default permission (default)
- :error: Raise an error if an undefined permission is queried
- :allow: Always allow undefined permission queries
- :deny: Always deny undefined permission queries

Something went wrong with that request. Please try again.