Skip to content

Releases: wbotelhos/authorizy

v0.6.0

02 Apr 14:10
a99fd47

Choose a tag to compare

Updates

  • Set activesupport as production dependency
  • Update gemspec to not include specs into the gem

v0.5.0

10 Feb 21:35
daf38f1

Choose a tag to compare

  • The authorizy? helper now accepts custom parameters;

v0.4.1

12 Sep 21:45

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

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

Choose a tag to compare

Features

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

v0.2.2

12 Sep 16:49

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

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

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

Choose a tag to compare

Features

  • Enables permission control via JSON data;