Revision 11289
Added by Jean-Philippe Lang over 12 years ago
redmine.rb | ||
---|---|---|
208 | 208 |
menu.push :login, :signin_path, :if => Proc.new { !User.current.logged? } |
209 | 209 |
menu.push :register, :register_path, :if => Proc.new { !User.current.logged? && Setting.self_registration? } |
210 | 210 |
menu.push :my_account, { :controller => 'my', :action => 'account' }, :if => Proc.new { User.current.logged? } |
211 |
menu.push :logout, :signout_path, :if => Proc.new { User.current.logged? } |
|
211 |
menu.push :logout, :signout_path, :html => {:method => 'post'}, :if => Proc.new { User.current.logged? }
|
|
212 | 212 |
end |
213 | 213 |
|
214 | 214 |
Redmine::MenuManager.map :application_menu do |menu| |
Also available in: Unified diff
Use POST instead of GET for logging out (#13022).