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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
6dda8592
Commit
6dda8592
authored
Oct 24, 2018
by
Heinrich Lee Yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update boards issue creation authorization
parent
5b27e2db
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
app/controllers/concerns/boards_responses.rb
app/controllers/concerns/boards_responses.rb
+8
-1
No files found.
app/controllers/concerns/boards_responses.rb
View file @
6dda8592
...
...
@@ -50,8 +50,15 @@ module BoardsResponses
end
def
authorize_create_issue
board
=
board_parent
.
boards
.
find
(
issue_params
[
:board_id
])
list
=
board
.
lists
.
find
(
issue_params
[
:list_id
])
if
list
.
backlog?
authorize_action_for!
(
project
,
:create_issue
)
else
authorize_action_for!
(
project
,
:admin_issue
)
end
end
def
authorize_admin_list
authorize_action_for!
(
board
.
parent
,
:admin_list
)
...
...
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