mirror of
https://github.com/e107inc/e107.git
synced 2025-08-27 08:14:46 +02:00
Issue #5064 - Draft fix for user impersonation (getperms())
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
|
||||
if(!defined('e107_INIT')){ exit; }
|
||||
|
||||
if (!getperms("2"))
|
||||
if (!getperms("2") && !e107::isCli())
|
||||
{
|
||||
e107::redirect();
|
||||
exit;
|
||||
|
Reference in New Issue
Block a user