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
Léo-Paul Géneau
gitlab-ce
Commits
58ac731c
Commit
58ac731c
authored
10 years ago
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Issues#bulk_update
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
5a098e84
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
app/controllers/projects/issues_controller.rb
app/controllers/projects/issues_controller.rb
+6
-3
app/models/ability.rb
app/models/ability.rb
+1
-0
No files found.
app/controllers/projects/issues_controller.rb
View file @
58ac731c
...
...
@@ -9,7 +9,10 @@ class Projects::IssuesController < Projects::ApplicationController
before_filter
:authorize_write_issue!
,
only:
[
:new
,
:create
]
# Allow modify issue
before_filter
:authorize_modify_issue!
,
only:
[
:edit
,
:update
,
:bulk_update
]
before_filter
:authorize_modify_issue!
,
only:
[
:edit
,
:update
]
# Allow issues bulk update
before_filter
:authorize_admin_issues!
,
only:
[
:bulk_update
]
respond_to
:html
...
...
@@ -107,8 +110,8 @@ class Projects::IssuesController < Projects::ApplicationController
return
render_404
unless
can?
(
current_user
,
:modify_issue
,
@issue
)
end
def
authorize_admin_issue!
return
render_404
unless
can?
(
current_user
,
:admin_issue
,
@
issue
)
def
authorize_admin_issue
s
!
return
render_404
unless
can?
(
current_user
,
:admin_issue
,
@
project
)
end
def
module_enabled
...
...
This diff is collapsed.
Click to expand it.
app/models/ability.rb
View file @
58ac731c
...
...
@@ -126,6 +126,7 @@ class Ability
:write_merge_request
,
:write_wiki
,
:modify_issue
,
:admin_issue
,
:push_code
]
end
...
...
This diff is collapsed.
Click to expand it.
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