Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
bc0a513f
Commit
bc0a513f
authored
Aug 30, 2016
by
http://jneen.net/
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s/NB:/NOTE:/
parent
78eabebe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/policies/base_policy.rb
app/policies/base_policy.rb
+1
-1
app/policies/project_policy.rb
app/policies/project_policy.rb
+1
-1
No files found.
app/policies/base_policy.rb
View file @
bc0a513f
...
...
@@ -59,7 +59,7 @@ class BasePolicy
begin
policy_class
=
"
#{
klass
.
name
}
Policy"
.
constantize
# N
B
: the < operator here tests whether policy_class
# N
OTE
: the < operator here tests whether policy_class
# inherits from BasePolicy
return
policy_class
if
policy_class
<
BasePolicy
rescue
NameError
...
...
app/policies/project_policy.rb
View file @
bc0a513f
...
...
@@ -196,7 +196,7 @@ class ProjectPolicy < BasePolicy
can!
:read_container_image
can!
:download_code
# N
B
: may be overridden by IssuePolicy
# N
OTE
: may be overridden by IssuePolicy
can!
:read_issue
# Allow to read builds by anonymous user if guests are allowed
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment