Fixes ACL parsing

This commit is contained in:
nuxsmin
2014-01-21 22:55:39 +01:00
parent aff4182d57
commit 7ddd8eb34a
2 changed files with 14 additions and 4 deletions

View File

@@ -117,10 +117,10 @@ echo '<div id="data-search" class="data-rows">';
// Mostrar los resultados de la búsqueda
foreach ( $resQuery as $account ){
$objAccount->accountId = $account->account_id;
$objAccount->accountUserId = $account->account_userId;
$objAccount->accountUserGroupId = $account->account_userGroupId;
$objAccount->accountOtherUserEdit = $account->account_otherUserEdit;
$objAccount->accountOtherGroupEdit = $account->account_otherGroupEdit;
$objAccount->accountUserId = $account->account_userId;
$objAccount->accountUserGroupId = $account->account_userGroupId;
$objAccount->accountOtherUserEdit = $account->account_otherUserEdit;
$objAccount->accountOtherGroupEdit = $account->account_otherGroupEdit;
$accView = ( SP_ACL::checkAccountAccess("accview", $objAccount->getAccountDataForACL()) && SP_ACL::checkUserAccess("accview") );
$accViewPass = ( SP_ACL::checkAccountAccess("accviewpass", $objAccount->getAccountDataForACL()) && SP_ACL::checkUserAccess("accviewpass") );

View File

@@ -244,6 +244,11 @@ class SP_Account {
return FALSE;
}
$this->accountUserId = $queryRes->account_userId;
$this->accountUserGroupId = $queryRes->account_userGroupId;
$this->accountOtherUserEdit = $queryRes->account_otherUserEdit;
$this->accountOtherGroupEdit = $queryRes->account_otherGroupEdit;
return $queryRes;
}
@@ -292,6 +297,11 @@ class SP_Account {
return FALSE;
}
$this->accountUserId = $queryRes->acchistory_userId;
$this->accountUserGroupId = $queryRes->acchistory_userGroupId;
$this->accountOtherUserEdit = $queryRes->acchistory_otherUserEdit;
$this->accountOtherGroupEdit = $queryRes->acchistory_otherGroupEdit;
return $queryRes;
}