Skip to content

Releases: wbotelhos/authorizy

v0.5.0

10 Feb 21:35
daf38f1
Compare
Choose a tag to compare
  • The authorizy? helper now accepts custom parameters;

v0.4.1

12 Sep 21:45
Compare
Choose a tag to compare

Fixes

  • redirect_url was receiving the denied context instead of the controller's context;

v0.4.0

12 Sep 16:48
Compare
Choose a tag to compare

Fixes

  • Returns 403 status code, to represent recognized but not authorized, instead 401;

Features

  • Added denied callback allowing a custom acess denied treatment;

v0.3.0

12 Sep 16:49
Compare
Choose a tag to compare

Features

  • Added options field to customize how the authorizy field is fetched;

v0.2.2

12 Sep 16:49
Compare
Choose a tag to compare

Fixes

  • When Cop returns anything different from true it is converted to false;

v0.2.1

12 Sep 16:50
Compare
Choose a tag to compare

Fixes

  • Returns 401 status code when user has no authorization on a XHR request;

v0.2.0

12 Sep 16:48
Compare
Choose a tag to compare

Break Changes

  • The permissions format now is:
{
  permissions: [
    ['controller', 'action'],
    ['controller2', 'action2'],
  ]
}

Fixes

  • Calls the Authorizy::BaseCop#access? as the first check intercepting all requests;

Features

  • Added RSpec matcher to make the test easier;

v0.1.0

11 Nov 00:28
Compare
Choose a tag to compare

Features

  • Enables permission control via JSON data;