Merge branch 'dev'

master
ELF 5 years ago
commit 9cd4292b6f

@ -39,7 +39,7 @@ class PromoteController extends BaseController
$loginPromote = $this->getLoginPromote();
$whiteList = [1, 8];
$isOpenQuery = in_array($loginer['id'], $whiteList) || in_array($loginer['parent_id'], $whiteList) || in_array($loginer['grand_id'], $whiteList) ? true : false;
$isOpenQuery = in_array($loginPromote['id'], $whiteList) || in_array($loginPromote['parent_id'], $whiteList) || in_array($loginPromote['grand_id'], $whiteList) ? true : false;
if (!$isOpenQuery) {
$this->display('prepare');

Loading…
Cancel
Save