Class: Decidim::UserActivitiesController
- Inherits:
-
ApplicationController
- Object
- DecidimController
- ApplicationController
- Decidim::UserActivitiesController
- Includes:
- FilterResource, Flaggable, HasProfileBreadcrumb, 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
Instance Method Summary collapse
Methods included from UserGroups
Methods included from UserBlockedChecker
#check_user_block_status, #check_user_not_blocked
Methods included from NeedsSnippets
Methods included from Headers::HttpCachingDisabler
Methods included from HasStoredPath
#skip_store_location?, #store_current_location
Methods included from TranslatableAttributes
Methods included from RegistersPermissions
Methods included from NeedsOrganization
enhance_controller, extended, included
Instance Method Details
#index ⇒ Object
15 16 17 18 |
# File 'app/controllers/decidim/user_activities_controller.rb', line 15 def index raise ActionController::RoutingError, "Missing user: #{params[:nickname]}" unless user raise ActionController::RoutingError, "Blocked User" if user.blocked? && !current_user&.admin? end |