erbac 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- 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