mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-21 07:26:15 +08:00
Merge pull request #6288 from rekonder/aj_SCI_9367
Fix comment permission check [SCI-9367]
This commit is contained in:
commit
2771c04257
|
@ -112,6 +112,6 @@ class CommentsController < ApplicationController
|
|||
end
|
||||
|
||||
def check_manage_permissions
|
||||
comment_editable?(@comment)
|
||||
render_403 unless comment_editable?(@comment)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue