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.
- data/lib/erbac/active_record_support.rb +1 -1
- data/lib/erbac/version.rb +1 -1
- metadata +1 -1
|
@@ -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(
|
|
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