mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Only show error of licences if user is admin. Ticket: #3999
This commit is contained in:
parent
8b2bdb0e56
commit
14a627fc33
@ -373,7 +373,10 @@ if (! isset ($config['id_user'])) {
|
||||
//login ok and password has not expired
|
||||
$process_login = true;
|
||||
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user