11 lines
166 B
Ruby
11 lines
166 B
Ruby
|
|
class Baclight::ProviderPolicy < ApplicationPolicy
|
||
|
|
|
||
|
|
def claims?; provider_rule?; end
|
||
|
|
|
||
|
|
private
|
||
|
|
|
||
|
|
def provider_rule?
|
||
|
|
user.admin? || user.provider?
|
||
|
|
end
|
||
|
|
|
||
|
|
end
|