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
@ -372,9 +372,12 @@ if (! isset ($config['id_user'])) {
|
|||||||
|
|
||||||
//login ok and password has not expired
|
//login ok and password has not expired
|
||||||
$process_login = true;
|
$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"])) {
|
if (!isset($_GET["sec2"]) && !isset($_GET["sec"])) {
|
||||||
// Avoid the show homepage when the user go to
|
// Avoid the show homepage when the user go to
|
||||||
// a specific section of pandora
|
// a specific section of pandora
|
||||||
|
Loading…
x
Reference in New Issue
Block a user