Class: Decidim::Notify::Admin::Permissions
- Inherits:
-
DefaultPermissions
- Object
- DefaultPermissions
- Decidim::Notify::Admin::Permissions
- Defined in:
- app/permissions/decidim/notify/admin/permissions.rb
Instance Method Summary collapse
Instance Method Details
#permissions ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/permissions/decidim/notify/admin/permissions.rb', line 7 def return unless user return if .scope != :admin return unless [:config, :chapter].include? .subject case .action when :index, :create, :update, :destroy .allow! end end |