Class: Decidim::Core::SessionType

Inherits:
Api::Types::BaseObject
  • Object
show all
Defined in:
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 'lib/decidim/api/types/session_type.rb', line 11

def user
  object
end

#verified_user_groupsObject



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

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