Let everyone see all comments and polish request for comments overview
This commit is contained in:
@ -8,7 +8,11 @@ class CommentPolicy < ApplicationPolicy
|
||||
everyone
|
||||
end
|
||||
|
||||
[:new?, :show?, :destroy?].each do |action|
|
||||
def show?
|
||||
everyone
|
||||
end
|
||||
|
||||
[:new?, :destroy?].each do |action|
|
||||
define_method(action) { admin? || author? }
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user