コード例 #1
0
ファイル: Agency.php プロジェクト: Jaree/revive-adserver
 function belongsToAccount($accountId = null)
 {
     // Set the account ID, if not passed in
     if (empty($accountId)) {
         $accountId = OA_Permission::getAccountId();
     }
     $result = parent::belongsToAccount($accountId);
     if (!$result) {
         $doAccounts = OA_Dal::staticGetDO('accounts', $accountId);
         $result = $doAccounts->account_type == OA_ACCOUNT_ADMIN;
     }
     return $result;
 }