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
d1356dc9
Commit
d1356dc9
authored
Jul 24, 2017
by
Felipe Artur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix lists controller
parent
d8ef8da0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
app/controllers/boards/lists_controller.rb
app/controllers/boards/lists_controller.rb
+4
-4
app/models/ee/board.rb
app/models/ee/board.rb
+4
-0
No files found.
app/controllers/boards/lists_controller.rb
View file @
d1356dc9
module
Boards
class
ListsController
<
Boards
::
ApplicationController
#
before_action :authorize_admin_list!, only: [:create, :update, :destroy, :generate]
#
before_action :authorize_read_list!, only: [:index]
#before_action :authorize_admin_list!, only: [:create, :update, :destroy, :generate]
#before_action :authorize_read_list!, only: [:index]
def
index
lists
=
::
Boards
::
Lists
::
ListService
.
new
(
projec
t
,
current_user
).
execute
(
board
)
lists
=
::
Boards
::
Lists
::
ListService
.
new
(
board
.
paren
t
,
current_user
).
execute
(
board
)
render
json:
serialize_as_json
(
lists
)
end
...
...
@@ -62,7 +62,7 @@ module Boards
end
def
board
@board
||=
project
.
boards
.
find
(
params
[
:board_id
])
@board
||=
Board
.
find
(
params
[
:board_id
])
end
def
list_params
...
...
app/models/ee/board.rb
View file @
d1356dc9
...
...
@@ -21,6 +21,10 @@ module EE
end
end
def
parent
group
||
project
end
def
as_json
(
options
=
{})
milestone_attrs
=
options
.
fetch
(
:include
,
{})
.
extract!
(
:milestone
)
...
...
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