123456789101112131415161718192021 |
- # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
- class PGPKeyPolicy < ApplicationPolicy
- def create?
- admin?
- end
- def show?
- admin?
- end
- def destroy?
- admin?
- end
- private
- def admin?
- user.permissions?('admin.integration.pgp')
- end
- end
|