1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/app/policies/staff/x509_certificate/private_key_policy.rb
2019-09-12 07:37:36 +05:00

11 lines
250 B
Ruby

# frozen_string_literal: true
class Staff::X509Certificate::PrivateKeyPolicy < ApplicationPolicy
def show?
return false if restricted?
account&.superuser? &&
record.exist? &&
params[:private_key_pem_secret].present?
end
end