Class: Decidim::Blog::Permissions
- Inherits:
-
DefaultPermissions
- Object
- DefaultPermissions
- Decidim::Blog::Permissions
- Defined in:
- app/permissions/decidim/blog/permissions.rb
Instance Method Summary collapse
Instance Method Details
#permissions ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/permissions/decidim/blog/permissions.rb', line 6 def return unless .subject == :blogpost if .scope == :public allow! return end return if .scope != :admin allow! end |