forked from vitstradal/redmine_remote_user_auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.rb
18 lines (16 loc) · 965 Bytes
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Redmine::Plugin.register :redmine_remote_user_auth do
name 'Redmine Remote User Auth plugin'
author 'Vitas Stradal [email protected]'
description 'Adds Remote User authorization to Redmine.'
version '0.1.0'
url 'http://example.com'
author_url 'http://dcit.cz/'
end
Redmine::MenuManager.map :account_menu do |menu|
#menu.push :loginRemoteUser, :signinRemoteUser_path, :if => Proc.new { !User.current.logged? }
#menu.push :loginRemoteUser, { :controler=> 'my', :action=> 'signinRemoteUser' }, :if => Proc.new { !User.current.logged? }
#menu.push :loginRemoteUser, { :controller=> 'account_remote_user', :action=> 'signin_remote_user' }, :if => Proc.new { !User.current.logged? }
menu.push :loginRemoteUser, { :controller=> 'account_remote_user', :action=> 'login_remote_user', :ahoj=> '' }, :if => Proc.new { !User.current.logged? }
end
require_dependency 'redmine_remote_user_auth/hooks'
require_dependency 'redmine_remote_user_auth/hooks.rb'