Class: Decidim::Meetings::Admin::Permissions

Inherits:
DefaultPermissions
  • Object
show all
Defined in:
app/permissions/decidim/meetings/admin/permissions.rb

Instance Method Summary collapse

Instance Method Details

#permissionsObject



7
8
9
10
11
12
13
14
15
16
17
18
# File 'app/permissions/decidim/meetings/admin/permissions.rb', line 7

def permissions
  return permission_action unless user
  return permission_action unless permission_action.scope == :admin

  allowed_registration_form_action?
  allowed_meeting_action?
  allowed_agenda_action?
  allowed_poll_action?
  allowed_export_answers?

  permission_action
end