s/NB:/NOTE:/
This commit is contained in:
parent
78eabebedc
commit
bc0a513f62
2 changed files with 2 additions and 2 deletions
|
@ -59,7 +59,7 @@ class BasePolicy
|
||||||
begin
|
begin
|
||||||
policy_class = "#{klass.name}Policy".constantize
|
policy_class = "#{klass.name}Policy".constantize
|
||||||
|
|
||||||
# NB: the < operator here tests whether policy_class
|
# NOTE: the < operator here tests whether policy_class
|
||||||
# inherits from BasePolicy
|
# inherits from BasePolicy
|
||||||
return policy_class if policy_class < BasePolicy
|
return policy_class if policy_class < BasePolicy
|
||||||
rescue NameError
|
rescue NameError
|
||||||
|
|
|
@ -196,7 +196,7 @@ class ProjectPolicy < BasePolicy
|
||||||
can! :read_container_image
|
can! :read_container_image
|
||||||
can! :download_code
|
can! :download_code
|
||||||
|
|
||||||
# NB: may be overridden by IssuePolicy
|
# NOTE: may be overridden by IssuePolicy
|
||||||
can! :read_issue
|
can! :read_issue
|
||||||
|
|
||||||
# Allow to read builds by anonymous user if guests are allowed
|
# Allow to read builds by anonymous user if guests are allowed
|
||||||
|
|
Loading…
Reference in a new issue