fix policy
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
# which can be viewed by anyone
|
||||
class EditOwnPolicy < ApplicationPolicy
|
||||
def edit?
|
||||
return true member.admin?
|
||||
return true if member.admin?
|
||||
owner?
|
||||
end
|
||||
def owner?
|
||||
|
Reference in New Issue
Block a user