Class: Decidim::ReportUserPermissions
- Inherits:
-
DefaultPermissions
- Object
- DefaultPermissions
- Decidim::ReportUserPermissions
- Defined in:
- app/permissions/decidim/report_user_permissions.rb
Instance Method Summary collapse
Methods inherited from DefaultPermissions
Constructor Details
This class inherits a constructor from Decidim::DefaultPermissions
Instance Method Details
#permissions ⇒ Object
5 6 7 8 9 10 11 |
# File 'app/permissions/decidim/report_user_permissions.rb', line 5 def return unless user allow! if .subject == :user_report && .action == :create end |