Class: Decidim::Core::ComponentType
- Inherits:
-
Api::Types::BaseObject
- Object
- GraphQL::Schema::Object
- Api::Types::BaseObject
- Decidim::Core::ComponentType
- Defined in:
- decidim-core/lib/decidim/api/types/component_type.rb
Direct Known Subclasses
Accountability::AccountabilityType, Blogs::BlogsType, Budgets::BudgetsType, Decidim::CollaborativeTexts::DocumentsType, Debates::DebatesType, Meetings::MeetingsType, Pages::PagesType, Proposals::ProposalsMutationType, Proposals::ProposalsType, Sortitions::SortitionsType, Surveys::SurveysType
Class Method Summary collapse
Methods inherited from Api::Types::BaseObject
allowed_to?, determine_subject_name, local_admin_context, local_context, permission_chain
Class Method Details
.authorized?(object, context) ⇒ Boolean
9 10 11 12 13 14 |
# File 'decidim-core/lib/decidim/api/types/component_type.rb', line 9 def self.(object, context) context[:component] = object context[:current_component] = object super && allowed_to?(:read, :component, object, context) end |