Skip to content
This repository was archived by the owner on Dec 6, 2019. It is now read-only.

Commit 7303aa0

Browse files
committed
security fix, updated to 2.1.935
1 parent ad0f169 commit 7303aa0

File tree

3 files changed

+335
-335
lines changed

3 files changed

+335
-335
lines changed

admin/action.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
error_reporting(E_ALL ^ E_NOTICE);
5050

51-
if(!Auth::LoggedIn() && !PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN))
51+
if(!Auth::LoggedIn() || !PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN))
5252
{
5353
Debug::showCritical('Unauthorized access!');
5454
die();
@@ -58,4 +58,4 @@
5858
MainController::runAllActions();
5959

6060
# Force connection close
61-
DB::close();
61+
DB::close();

core/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
934
1+
935

0 commit comments

Comments
 (0)