sul-dlss/sdr-api

View on GitHub
app/policies/account_policy.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

# A policy to govern access to other accounts
class AccountPolicy < ApplicationPolicy
  # Only argo should be allowed to proxy to other users
  def proxy?
    user.email == Settings.argo_user
  end
end