Home > Redmine > Redmine 1.4 & Block user show(show only for admin)

Redmine 1.4 & Block user show(show only for admin)

vi app/controllers/users_controller.rb

    @events_by_day = events.group_by(&:event_date)

    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.