Class: Decidim::DefaultPermissions
- Inherits:
-
Object
- Object
- Decidim::DefaultPermissions
- Defined in:
- app/permissions/decidim/default_permissions.rb
Overview
Default permissions class for all components and spaces. It disauthorizes all actions by any kind of user. Also works as a default implementation so other components can inherit from it and get some cenvenience methods.
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(user, permission_action, context = {}) ⇒ DefaultPermissions
constructor
A new instance of DefaultPermissions.
- #permissions ⇒ Object
Constructor Details
#initialize(user, permission_action, context = {}) ⇒ DefaultPermissions
Returns a new instance of DefaultPermissions.
8 9 10 11 12 |
# File 'app/permissions/decidim/default_permissions.rb', line 8 def initialize(user, , context = {}) @user = user @permission_action = @context = context end |
Instance Method Details
#permissions ⇒ Object
14 15 16 |
# File 'app/permissions/decidim/default_permissions.rb', line 14 def end |