Description:
shows warning message when user cannot log in in single user mode
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r301:bdf9a550f783 - - 1 file changed: 1 inserted, 0 deleted
@@ -33,6 +33,7 | |||||
|
33 | if Configuration[SINGLE_USER_MODE_CONF_KEY] |
|
33 | if Configuration[SINGLE_USER_MODE_CONF_KEY] |
|
34 | user = User.find(session[:user_id]) |
|
34 | user = User.find(session[:user_id]) |
|
35 | if user==nil or (not user.admin?) |
|
35 | if user==nil or (not user.admin?) |
|
|
36 | + flash[:notice] = 'You cannot log in at this time' | ||
|
36 | redirect_to :controller => 'main', :action => 'login' |
|
37 | redirect_to :controller => 'main', :action => 'login' |
|
37 | return false |
|
38 | return false |
|
38 | end |
|
39 | end |
You need to be logged in to leave comments.
Login now