show_login_for_curent_user_Redmine_1.2.1.diff

Jérôme BATAILLE, 2013-02-13 12:27

Download (539 Bytes)

View differences:

app/views/users/show.api.rsb (copie de travail)
1 1
api.user do
2 2
  api.id         @user.id
3
  api.login      @user.login if User.current.admin?
3
  api.login      @user.login if User.current.admin? || (User.current == @user)
4 4
  api.firstname  @user.firstname
5 5
  api.lastname   @user.lastname
6 6
  api.mail       @user.mail if User.current.admin? || !@user.pref.hide_mail