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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
46d7c1d2
Commit
46d7c1d2
authored
Dec 06, 2016
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prefer guest_can_download_code? and fix typo
parent
1b150576
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
lib/gitlab/git_access.rb
lib/gitlab/git_access.rb
+2
-2
lib/gitlab/git_access_wiki.rb
lib/gitlab/git_access_wiki.rb
+1
-1
No files found.
lib/gitlab/git_access.rb
View file @
46d7c1d2
...
...
@@ -51,7 +51,7 @@ module Gitlab
deploy_key
.
has_access_to?
(
project
)
elsif
user
user_can_download_code?
||
build_can_download_code?
end
||
guest_can_downlod_code?
end
||
guest_can_downlo
a
d_code?
unless
passed
message
=
if
deploy_key
...
...
@@ -79,7 +79,7 @@ module Gitlab
check_change_access!
(
changes
)
end
def
guest_can_downlod_code?
def
guest_can_downlo
a
d_code?
Guest
.
can?
(
:download_code
,
project
)
end
...
...
lib/gitlab/git_access_wiki.rb
View file @
46d7c1d2
module
Gitlab
class
GitAccessWiki
<
GitAccess
def
guest_can_downlod_code?
def
guest_can_downlo
a
d_code?
Guest
.
can?
(
:download_wiki_code
,
project
)
end
...
...
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