Class: Decidim::UserActivitiesController

Inherits:
ApplicationController show all
Includes:
FilterResource, Flaggable, Paginable, UserGroups
Defined in:
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 included from UserGroups

#enforce_user_groups_enabled

Methods included from UserBlockedChecker

#check_user_block_status, #check_user_not_blocked

Methods included from NeedsSnippets

#snippets

Methods included from HttpCachingDisabler

#disable_http_caching

Methods included from HasStoredPath

#skip_store_location?, #store_current_location

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 '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