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
613ce644
Commit
613ce644
authored
Apr 18, 2019
by
Patrick Derichs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Aligned IssuesController implementation with EE
parent
ce02daea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
app/controllers/projects/issues_controller.rb
app/controllers/projects/issues_controller.rb
+4
-4
No files found.
app/controllers/projects/issues_controller.rb
View file @
613ce644
...
...
@@ -10,11 +10,11 @@ class Projects::IssuesController < Projects::ApplicationController
include
SpammableActions
include
RecordUserLastActivity
def
self
.
issue_except_actions
def
issue_except_actions
%i[index calendar new create bulk_update import_csv]
end
def
se
lf
.
se
t_issuables_index_only_actions
def
set_issuables_index_only_actions
%i[index calendar]
end
...
...
@@ -25,9 +25,9 @@ class Projects::IssuesController < Projects::ApplicationController
before_action
:whitelist_query_limiting
,
only:
[
:create
,
:create_merge_request
,
:move
,
:bulk_update
]
before_action
:check_issues_available!
before_action
:issue
,
except:
issue_except_actions
before_action
:issue
,
unless:
->
(
c
)
{
c
.
issue_except_actions
.
include?
(
c
.
action_name
.
to_sym
)
}
before_action
:set_issuables_index
,
only:
set_issuables_index_only_actions
before_action
:set_issuables_index
,
if:
->
(
c
)
{
c
.
set_issuables_index_only_actions
.
include?
(
c
.
action_name
.
to_sym
)
}
# Allow write(create) issue
before_action
:authorize_create_issue!
,
only:
[
:new
,
:create
]
...
...
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