Allow updating comments
This commit is contained in:
@ -12,7 +12,7 @@ class CommentPolicy < ApplicationPolicy
|
|||||||
everyone
|
everyone
|
||||||
end
|
end
|
||||||
|
|
||||||
[:new?, :destroy?].each do |action|
|
[:new?, :destroy?, :update?].each do |action|
|
||||||
define_method(action) { admin? || author? }
|
define_method(action) { admin? || author? }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user