don't stop at cannot definitions when there are no conditions - closes #161
This commit is contained in:
@@ -36,7 +36,8 @@ module CanCan
|
||||
elsif @conditions.kind_of?(Hash) && !subject_class?(subject)
|
||||
matches_conditions_hash?(subject)
|
||||
else
|
||||
@base_behavior
|
||||
# Don't stop at "cannot" definitions when there are conditions.
|
||||
@conditions.empty? ? true : @base_behavior
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user