Class: Decidim::Core::SessionType

Inherits:
Api::Types::BaseObject show all
Defined in:
decidim-core/lib/decidim/api/types/session_type.rb

Overview

This type represents the current user session.

Instance Method Summary collapse

Instance Method Details

#userObject


11
12
13
# File 'decidim-core/lib/decidim/api/types/session_type.rb', line 11

def user
  object
end

#verified_user_groupsObject


17
18
19
# File 'decidim-core/lib/decidim/api/types/session_type.rb', line 17

def verified_user_groups
  Decidim::UserGroups::ManageableUserGroups.for(object).verified
end