Class: Decidim::DefaultPermissions
- Inherits:
-
Object
- Object
- Decidim::DefaultPermissions
- Defined in:
- decidim-core/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
Accountability::Admin::Permissions, Accountability::Permissions, Admin::Permissions, Admin::UserManagerPermissions, Assemblies::Permissions, Blog::Permissions, Budgets::Admin::Permissions, Budgets::Permissions, Comments::Permissions, Conferences::Permissions, Decidim::Debates::Admin::Permissions, Decidim::Debates::Permissions, Elections::Admin::Permissions, Elections::Permissions, Elections::TrusteeZone::Permissions, Initiatives::Admin::Permissions, Initiatives::Permissions, Meetings::Admin::Permissions, Meetings::Permissions, Pages::Permissions, ParticipatoryProcesses::Permissions, Permissions, Proposals::Admin::Permissions, Proposals::Permissions, ReportUserPermissions, Sortitions::Admin::Permissions, Sortitions::Permissions, Surveys::Admin::Permissions, Surveys::Permissions, Templates::Admin::Permissions, UserManagerPermissions, Votings::Admin::Permissions, Votings::Permissions, Votings::PollingOfficerZone::Permissions
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 'decidim-core/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 'decidim-core/app/permissions/decidim/default_permissions.rb', line 14 def end |