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
58ac731c
Commit
58ac731c
authored
Feb 10, 2014
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
...
@@ -9,7 +9,10 @@ class Projects::IssuesController < Projects::ApplicationController
before_filter
:authorize_write_issue!
,
only:
[
:new
,
:create
]
before_filter
:authorize_write_issue!
,
only:
[
:new
,
:create
]
# Allow modify issue
# 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
respond_to
:html
...
@@ -107,8 +110,8 @@ class Projects::IssuesController < Projects::ApplicationController
...
@@ -107,8 +110,8 @@ class Projects::IssuesController < Projects::ApplicationController
return
render_404
unless
can?
(
current_user
,
:modify_issue
,
@issue
)
return
render_404
unless
can?
(
current_user
,
:modify_issue
,
@issue
)
end
end
def
authorize_admin_issue!
def
authorize_admin_issue
s
!
return
render_404
unless
can?
(
current_user
,
:admin_issue
,
@
issue
)
return
render_404
unless
can?
(
current_user
,
:admin_issue
,
@
project
)
end
end
def
module_enabled
def
module_enabled
...
...
app/models/ability.rb
View file @
58ac731c
...
@@ -126,6 +126,7 @@ class Ability
...
@@ -126,6 +126,7 @@ class Ability
:write_merge_request
,
:write_merge_request
,
:write_wiki
,
:write_wiki
,
:modify_issue
,
:modify_issue
,
:admin_issue
,
:push_code
:push_code
]
]
end
end
...
...
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