Class: Decidim::UserActivitiesController

Inherits:
ApplicationController
  • Object
show all
Includes:
FilterResource, Flaggable, HasProfileBreadcrumb, Paginable
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

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