mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 11:47:56 +01:00
5 lines
107 B
Ruby
5 lines
107 B
Ruby
|
|
class CommentPolicy < ApplicationPolicy
|
||
|
|
def update?
|
||
|
|
user == record.user or user.power_user?
|
||
|
|
end
|
||
|
|
end
|