diff options
author | DJ Mountney <david@twkie.net> | 2018-10-30 00:37:19 +0300 |
---|---|---|
committer | DJ Mountney <david@twkie.net> | 2018-10-30 00:37:19 +0300 |
commit | 06b6daacb15b92b04e05538b37aadfdb04fc5a4b (patch) | |
tree | 0500cf47f7d8d2e6bc7ed53cbf9ad957f07fb31a /app/controllers/concerns/boards_responses.rb | |
parent | c847f172d25efc211045c363f4e55402ad250c09 (diff) | |
parent | 45b61a9ece48550f51432c8cca7de7e1a298ca08 (diff) |
Merge remote-tracking branch 'origin/master' into dev-master
Diffstat (limited to 'app/controllers/concerns/boards_responses.rb')
-rw-r--r-- | app/controllers/concerns/boards_responses.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/concerns/boards_responses.rb b/app/controllers/concerns/boards_responses.rb index b7e4f9b81f1..3cdf4ddf8bb 100644 --- a/app/controllers/concerns/boards_responses.rb +++ b/app/controllers/concerns/boards_responses.rb @@ -50,7 +50,10 @@ module BoardsResponses end def authorize_create_issue - authorize_action_for!(project, :admin_issue) + list = List.find(issue_params[:list_id]) + action = list.backlog? ? :create_issue : :admin_issue + + authorize_action_for!(project, action) end def authorize_admin_list |