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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
d4be9674
Commit
d4be9674
authored
Sep 17, 2015
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 500 when accessing private project when not logged in
parent
0aec0d53
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
Gemfile.lock
Gemfile.lock
+0
-3
app/controllers/ci/application_controller.rb
app/controllers/ci/application_controller.rb
+1
-3
No files found.
Gemfile.lock
View file @
d4be9674
...
@@ -928,6 +928,3 @@ DEPENDENCIES
...
@@ -928,6 +928,3 @@ DEPENDENCIES
webmock (~> 1.21.0)
webmock (~> 1.21.0)
whenever (~> 0.8.4)
whenever (~> 0.8.4)
wikicloth (= 0.8.1)
wikicloth (= 0.8.1)
BUNDLED WITH
1.10.6
app/controllers/ci/application_controller.rb
View file @
d4be9674
...
@@ -10,9 +10,7 @@ module Ci
...
@@ -10,9 +10,7 @@ module Ci
def
authenticate_public_page!
def
authenticate_public_page!
unless
project
.
public
unless
project
.
public
unless
current_user
authenticate_user!
redirect_to
(
new_user_sessions_path
)
and
return
end
return
access_denied!
unless
can?
(
current_user
,
:read_project
,
gl_project
)
return
access_denied!
unless
can?
(
current_user
,
:read_project
,
gl_project
)
end
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