0

I created plug in for Redmine using Ruby On Rails. In index.html.erb [View] I want information related logged in person .

<h2>ResourcemanagController#index</h2>

<%= User.current.name %>
<%= User.current.id %>
<% if User.current.admin? %>
Admin
<% end %>

Using above code I am able to get User name , But I want email address of Current User. What to do ?

Dhruvin Shah
  • 83
  • 1
  • 7

2 Answers2

1
<%= User.current.login %>

Using Above Code We can get Email Address of Logged In Person in Redmine.

Dhruvin Shah
  • 83
  • 1
  • 7
0

As of Redmine 5.0.2, <%= User.current.mail%> should get you the current user's email address: