Home > Redmine > Redmine 2.1 & Block activity show(show only for admin)

Redmine 2.1 & Block activity show(show only for admin)

vi app/controllers/activities_controller.rb

 def index
    @days = Setting.activity_days_default.to_i

    if !User.current.admin?
      render_404
      return
    end

 

rake tmp:cache:clear
rake tmp:sessions:clear
touch tmp/restart.txt

Categories: Redmine Tags:
  1. No comments yet.
  1. No trackbacks yet.