- The
authorizy?
helper now accepts custom parameters;
redirect_url
was receiving thedenied
context instead of the controller's context;
- Returns
403
status code, to represent recognized but not authorized, instead401
;
- Added
denied
callback allowing a custom acess denied treatment;
- Added options
field
to customize how the authorizy field is fetched;
- When Cop returns anything different from
true
it is converted tofalse
;
- Returns
401
status code when user has no authorization on a XHR request;
- The permissions format now is:
{
permissions: [
['controller', 'action'],
['controller2', 'action2'],
]
}
- Calls the
Authorizy::BaseCop#access?
as the first check intercepting all requests;
- Added RSpec matcher to make the test easier;
- Enables permission control via JSON data;