diff options
Diffstat (limited to 'app/policies/export_policy.rb')
| -rw-r--r-- | app/policies/export_policy.rb | 15 | 
1 files changed, 15 insertions, 0 deletions
| diff --git a/app/policies/export_policy.rb b/app/policies/export_policy.rb new file mode 100644 index 000000000..e667f3207 --- /dev/null +++ b/app/policies/export_policy.rb @@ -0,0 +1,15 @@ +class ExportPolicy < ApplicationPolicy +  class Scope < Scope +    def resolve +      scope +    end +  end + +  def create? +    user.has_permission?('exports.create') +  end + +  def update? +    user.has_permission?('exports.update') +  end +end | 
