26 lines
245 B
Ruby
26 lines
245 B
Ruby
class CompanyPolicy < ApplicationPolicy
|
|
def index?
|
|
true
|
|
end
|
|
|
|
def search?
|
|
true
|
|
end
|
|
|
|
def show?
|
|
true
|
|
end
|
|
|
|
def create?
|
|
true
|
|
end
|
|
|
|
def update?
|
|
true
|
|
end
|
|
|
|
def destroy?
|
|
@account_user.administrator?
|
|
end
|
|
end
|