Only show error of licences if user is admin. Ticket: #3999

This commit is contained in:
m-lopez-f 2016-09-06 16:05:24 +02:00
parent 8b2bdb0e56
commit 14a627fc33
1 changed files with 6 additions and 3 deletions

View File

@ -372,9 +372,12 @@ if (! isset ($config['id_user'])) {
//login ok and password has not expired
$process_login = true;
echo "<script type='text/javascript'>var process_login_ok = 1;</script>";
if (is_user_admin($nick))
echo "<script type='text/javascript'>var process_login_ok = 1;</script>";
else
echo "<script type='text/javascript'>var process_login_ok = 0;</script>";
if (!isset($_GET["sec2"]) && !isset($_GET["sec"])) {
// Avoid the show homepage when the user go to
// a specific section of pandora