This commit is contained in:
tomas 2005-04-22 13:37:16 +00:00
parent fd5903d582
commit 18f08574a3
3 changed files with 56 additions and 18 deletions

View file

@ -530,8 +530,11 @@ class uiHandler extends uiBase {
*/
function addPerm($subj, $permAction, $id, $allowDeny)
{
#if($this->gb->checkPerm($this->userid, 'editPerms', $id)){
if (PEAR::isError($this->gb->addPerm($subj, $permAction, $id, $allowDeny))) {
if (PEAR::isError(
$this->gb->addPerm(
$this->sessid, $subj, $permAction, $id, $allowDeny
)
)) {
$this->_retMsg('Access denied.');
return FALSE;
}
@ -549,8 +552,7 @@ class uiHandler extends uiBase {
*/
function removePerm($permid, $oid)
{
#if($this->gb->checkPerm($this->userid, 'editPerms', $oid))
if (PEAR::isError($this->gb->removePerm($permid))) {
if (PEAR::isError($this->gb->removePerm($this->sessid, $permid))) {
$this->_retMsg('Access denied.');
return FALSE;
}