Class: Decidim::UserActivitiesController
- Inherits:
-
ApplicationController
- Object
- DecidimController
- ApplicationController
- Decidim::UserActivitiesController
- 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
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 HttpCachingDisabler
Methods included from HasStoredPath
#skip_store_location?, #store_current_location
Methods included from RegistersPermissions
Methods included from NeedsOrganization
enhance_controller, extended, included
Instance Method Details
#index ⇒ Object
14 15 16 |
# File 'app/controllers/decidim/user_activities_controller.rb', line 14 def index raise ActionController::RoutingError, "Blocked User" if user&.blocked? && !current_user&.admin? end |