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
c490430f
Commit
c490430f
authored
May 22, 2015
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix leftover user checks for git_annex after refactoring
parent
18cbfd82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
lib/gitlab/git_access.rb
lib/gitlab/git_access.rb
+3
-5
No files found.
lib/gitlab/git_access.rb
View file @
c490430f
...
...
@@ -68,9 +68,7 @@ module Gitlab
when
*
PUSH_COMMANDS
push_access_check
(
changes
)
when
*
GIT_ANNEX_COMMANDS
if
actor
.
is_a?
Key
git_annex_access_check
(
actor
.
user
,
project
,
changes
)
end
git_annex_access_check
(
project
,
changes
)
else
build_status_object
(
false
,
"The command you're trying to execute is not allowed."
)
end
...
...
@@ -283,8 +281,8 @@ module Gitlab
GitAccessStatus
.
new
(
status
,
message
)
end
def
git_annex_access_check
(
user
,
project
,
changes
)
unless
user
&&
user_allowed?
(
user
)
def
git_annex_access_check
(
project
,
changes
)
unless
user
&&
user_allowed?
return
build_status_object
(
false
,
"You don't have access"
)
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