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
56ea6b12
Commit
56ea6b12
authored
Feb 01, 2021
by
Florie Guibert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Epic Boards - Add Boards navigation item under Epics
Review feedback
parent
c2323a99
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
10 deletions
+4
-10
ee/app/controllers/groups/epic_boards_controller.rb
ee/app/controllers/groups/epic_boards_controller.rb
+3
-1
ee/config/routes/group.rb
ee/config/routes/group.rb
+1
-9
No files found.
ee/app/controllers/groups/epic_boards_controller.rb
View file @
56ea6b12
# frozen_string_literal: true
# frozen_string_literal: true
class
Groups::EpicBoardsController
<
Groups
::
BoardsController
class
Groups::EpicBoardsController
<
Groups
::
BoardsController
include
BoardsActions
include
BoardsActions
before_action
:authorize_read_board!
,
only:
[
:index
]
before_action
:authorize_read_board!
,
only:
[
:index
]
def
authorize_read_board!
def
authorize_read_board!
access_denied!
unless
can?
(
current_user
,
:read_epic_board
,
group
)
access_denied!
unless
Feature
.
enabled?
(
:epic_boards
,
group
)
&&
can?
(
current_user
,
:read_epic_board
,
group
)
end
end
end
end
ee/config/routes/group.rb
View file @
56ea6b12
...
@@ -11,8 +11,6 @@ constraints(::Constraints::GroupUrlConstrainer.new) do
...
@@ -11,8 +11,6 @@ constraints(::Constraints::GroupUrlConstrainer.new) do
patch
:override
,
on: :member
patch
:override
,
on: :member
end
end
get
'/epics/boards'
,
to:
redirect
(
'groups/%{group_id}/-/epic_boards'
)
get
'/analytics'
,
to:
redirect
(
'groups/%{group_id}/-/analytics/value_stream_analytics'
)
get
'/analytics'
,
to:
redirect
(
'groups/%{group_id}/-/analytics/value_stream_analytics'
)
resource
:contribution_analytics
,
only:
[
:show
]
resource
:contribution_analytics
,
only:
[
:show
]
...
@@ -114,10 +112,6 @@ constraints(::Constraints::GroupUrlConstrainer.new) do
...
@@ -114,10 +112,6 @@ constraints(::Constraints::GroupUrlConstrainer.new) do
resources
:notes
,
only:
[
:index
,
:create
,
:destroy
,
:update
],
concerns: :awardable
,
constraints:
{
id:
/\d+/
}
resources
:notes
,
only:
[
:index
,
:create
,
:destroy
,
:update
],
concerns: :awardable
,
constraints:
{
id:
/\d+/
}
end
end
collection
do
resources
:boards
,
only:
[
:index
,
:show
],
as:
'epic_boards'
end
collection
do
collection
do
post
:bulk_update
post
:bulk_update
end
end
...
@@ -144,9 +138,7 @@ constraints(::Constraints::GroupUrlConstrainer.new) do
...
@@ -144,9 +138,7 @@ constraints(::Constraints::GroupUrlConstrainer.new) do
end
end
end
end
resources
:epic_boards
,
only:
[
:index
]
do
resources
:epic_boards
,
only:
[
:index
]
resources
:lists
,
module: :boards
,
only:
[
:index
]
end
namespace
:security
do
namespace
:security
do
resource
:dashboard
,
only:
[
:show
],
controller: :dashboard
resource
:dashboard
,
only:
[
:show
],
controller: :dashboard
...
...
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