lib/authz/scopables/base.rb in authz-0.0.1.alpha4 vs lib/authz/scopables/base.rb in authz-0.0.1.alpha5
- old
+ new
@@ -226,10 +226,10 @@
# Resolve by intersection
# TODO: if this becomes a problem, we could add
# another parameter indicating the type of the match
# e.g. match: :any, match: :all
# "any" If announcement is available in 1,2,3 and I have 3 then I can see it
- # "all" If I am trying to create an annoucement for 1,2, and I only have 1 then it should be denied
+ # "all" If I am trying to create an announcement for 1,2, and I only have 1 then it should be denied
(instance_scope_ids & role_scope_ids).any?
else
# When instance is not associated to scoping class
# (e.g report with no city, announcement not available,
# in any city, city that has not been persisted)
\ No newline at end of file