Fix Bug for Mono Database : upgrade

Redirect user directly to his folder
This commit is contained in:
Dany De Bontridder 2015-11-10 02:14:18 +01:00
parent f4cff04ef8
commit dab1129c8f

View file

@ -122,11 +122,12 @@ echo '<div class="welcome"> ';
/**
*
* If the user is NOT admin and can access only ONE folder,
* so it will be directly redirected to this folder or to the plugins of this
* OR for a One Folder Installation
* he will be directly redirected to his folder or to the plugins of this
* folder if he's an "plugin user"
*/
if ( $User->admin == 0 )
if ( $User->admin == 0 || (defined("MULTI")&& MULTI == 0 ) )
{
// how many folder ?
$folder=$User->get_available_folder();