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
3b3f0e94
Commit
3b3f0e94
authored
Jul 29, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
aa9162a9
77926ea0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
app/controllers/projects_controller.rb
app/controllers/projects_controller.rb
+12
-10
qa/qa/specs/features/browser_ui/1_manage/group/create_group_with_mattermost_team_spec.rb
.../1_manage/group/create_group_with_mattermost_team_spec.rb
+0
-0
No files found.
app/controllers/projects_controller.rb
View file @
3b3f0e94
...
...
@@ -284,6 +284,18 @@ class ProjectsController < Projects::ApplicationController
end
# rubocop: enable CodeReuse/ActiveRecord
def
resolve
@project
=
Project
.
find
(
params
[
:id
])
if
can?
(
current_user
,
:read_project
,
@project
)
redirect_to
@project
else
render_404
end
end
private
# Render project landing depending of which features are available
# So if page is not available in the list it renders the next page
#
...
...
@@ -453,16 +465,6 @@ class ProjectsController < Projects::ApplicationController
def
present_project
@project
=
@project
.
present
(
current_user:
current_user
)
end
def
resolve
@project
=
Project
.
find
(
params
[
:id
])
if
can?
(
current_user
,
:read_project
,
@project
)
redirect_to
@project
else
render_404
end
end
end
ProjectsController
.
prepend
(
EE
::
ProjectsController
)
qa/qa/specs/features/browser_ui/
7_configure/mattermost
/create_group_with_mattermost_team_spec.rb
→
qa/qa/specs/features/browser_ui/
1_manage/group
/create_group_with_mattermost_team_spec.rb
View file @
3b3f0e94
File moved
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