Fixed typo
This commit is contained in:
@@ -2,7 +2,7 @@ class JobPolicy < ApplicationPolicy
|
||||
skip_pre_check :allow_admins, only: :cancel?
|
||||
|
||||
def cancel?
|
||||
record.open? && (user == record.costumer || user.operator? || user.admin?)
|
||||
record.open? && (user == record.customer || user.operator? || user.admin?)
|
||||
end
|
||||
|
||||
# See https://actionpolicy.evilmartians.io/#/writing_policies
|
||||
|
||||
Reference in New Issue
Block a user