erbac 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -38,7 +38,7 @@ module Erbac
38
38
  return true if Erbac.default_roles.include? item.name
39
39
  assignment = Erbac.auth_assignment_class.constantize.where(user_id: self, item_id: item).first
40
40
  if assignment
41
- return true if bizrule_sandbox(item.bizrule, params, item.data)
41
+ return true if bizrule_sandbox(assignment.bizrule, params, assignment.data)
42
42
  end
43
43
  item.parents.each do |p|
44
44
  return true if check_access_recursive?(p, params)
data/lib/erbac/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Erbac
2
- VERSION = "0.0.2".freeze
2
+ VERSION = "0.0.3".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erbac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: