Exemplo n.º 1
0
 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;
 }