Class: Decidim::DirectVerifications::Verification::Admin::Permissions
- Inherits:
-
Decidim::DefaultPermissions
- Object
- Decidim::DefaultPermissions
- Decidim::DirectVerifications::Verification::Admin::Permissions
- Defined in:
- app/permissions/decidim/direct_verifications/verification/admin/permissions.rb
Overview
Defines the abilities related to direct_verifications for a logged in admin user.
Instance Method Summary collapse
Instance Method Details
#permissions ⇒ Object
9 10 11 12 13 14 15 |
# File 'app/permissions/decidim/direct_verifications/verification/admin/permissions.rb', line 9 def return if .scope != :admin if user.organization..include?("direct_verifications") allow! if .subject == Decidim::DirectVerifications::UserProcessor end end |