* fixed log in to admin panel

* fixed File is not .zip plugin upload error
This commit is contained in:
slawkens
2017-09-13 16:35:06 +02:00
parent bdbd215aad
commit ab249eb95f
2 changed files with 3 additions and 1 deletions

View File

@@ -74,6 +74,8 @@ else
$_SESSION['remember_me'] = true;
$logged = true;
$logged_flags = $account_logged->getWebFlags();
if(isset($_POST['admin']) && !admin()) {
$errors[] = 'This account has no admin privileges.';
unset($_SESSION['account']);