Class: Decidim::UserActivitiesController

Inherits:
ApplicationController show all
Includes:
FilterResource, Flaggable, HasProfileBreadcrumb, Paginable
Defined in:
decidim-core/app/controllers/decidim/user_activities_controller.rb

Overview

The controller to show all the last activities in a Decidim Organization.

Constant Summary

Constants included from Paginable

Paginable::OPTIONS

Instance Method Summary collapse

Methods inherited from ApplicationController

#store_share_token

Methods included from UserBlockedChecker

#check_user_block_status, #check_user_not_blocked

Methods included from NeedsSnippets

#snippets

Methods included from Headers::HttpCachingDisabler

#disable_http_caching

Methods included from HasStoredPath

#skip_store_location?, #store_current_location

Methods included from TranslatableAttributes

#attachment?, #default_locale?

Methods included from RegistersPermissions

register_permissions

Methods included from NeedsOrganization

enhance_controller, extended, included

Instance Method Details

#indexObject

Raises:

  • (ActionController::RoutingError)


14
15
16
17
# File 'decidim-core/app/controllers/decidim/user_activities_controller.rb', line 14

def index
  raise ActionController::RoutingError, "Missing user: #{params[:nickname]}" unless user
  raise ActionController::RoutingError, "Blocked User" if user.blocked? && !current_user&.admin?
end