Module: Decidim::UserProfile

Extended by:
ActiveSupport::Concern
Includes:
FormFactory, UserGroups
Included in:
AccountController, DownloadYourDataController, NotificationsSettingsController, OwnUserGroupsController, UserInterestsController
Defined in:
app/controllers/concerns/decidim/user_profile.rb

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.



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

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