blob: 512bfc8ac1a908d79f6aca2701012f4e54fdf653 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
class ImportPolicy < ApplicationPolicy
class Scope < Scope
def resolve
scope
end
end
def create?
user.has_permission?('imports.create')
end
def update?
user.has_permission?('imports.update')
end
end
|