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