Module: Decidim::UserProfile

Overview

The UserProfile concern must be included in all the controllers that are shown in the user’s profile settings. It adds the proper layout, as well as helper methods that help render the side menu, amongst others.

Instance Method Summary collapse

Methods included from UserGroups

#enforce_user_groups_enabled

Instance Method Details

#available_verification_workflowsObject

Public: Available authorization handlers in order to conditionally show the menu element.



30
31
32
33
34
# File 'decidim-core/app/controllers/concerns/decidim/user_profile.rb', line 30

def available_verification_workflows
  Verifications::Adapter.from_collection(
    current_organization.available_authorizations & Decidim.authorization_workflows.map(&:name)
  )
end