mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-27 18:21:50 +08:00
Fix comment permission check [SCI-9367]
This commit is contained in:
parent
767c98c101
commit
ce1fe53ceb
1 changed files with 1 additions and 1 deletions
|
@ -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