From: Alan Knowles Date: Mon, 8 Feb 2021 07:26:19 +0000 (+0800) Subject: fix empty system for BAdmin X-Git-Url: http://git.roojs.org/?p=Pman.Base;a=commitdiff_plain;h=389cc1c77287df997dff6c1b2602fd81cdd85112 fix empty system for BAdmin --- diff --git a/Pman/Login.php b/Pman/Login.php index 05d0f17..01908bf 100644 --- a/Pman/Login.php +++ b/Pman/Login.php @@ -234,7 +234,7 @@ class Pman_Login extends Pman if(!$u->loginPublic()){ $this->jerr('Switch fail'); } - + $this->jok('OK'); } @@ -252,6 +252,12 @@ class Pman_Login extends Pman if (!empty($_REQUEST['logout'])) { return $this->logout(); } + + if(!empty($_REQUEST['check_owner_company'])) { + $core_company = DB_DataObject::factory('core_company'); + $core_company->comptype = 'OWNER'; + $this->jok($core_company->count()); + } if (!empty($_REQUEST['passwordRequest'])) { //|| (strpos($_REQUEST['username'], '@') < 1)) { return $this->passwordRequest($_REQUEST['passwordRequest']);