*** empty log message ***

This commit is contained in:
sebastian 2005-04-22 10:04:19 +00:00
parent 1b211176e8
commit f9ec998d96
34 changed files with 396 additions and 239 deletions

View file

@ -530,13 +530,13 @@ class uiHandler extends uiBase {
*/
function addPerm($subj, $permAction, $id, $allowDeny)
{
if($this->gb->checkPerm($this->userid, 'editPerms', $id)){
$this->gb->addPerm($subj, $permAction,
$id, $allowDeny);
}else{
#if($this->gb->checkPerm($this->userid, 'editPerms', $id)){
if (PEAR::isError($this->gb->addPerm($subj, $permAction, $id, $allowDeny))) {
$this->_retMsg('Access denied.');
return FALSE;
}
$this->redirUrl = UI_BROWSER.'?act=permissions&id='.$id;
return TRUE;
}
/**
@ -549,10 +549,13 @@ class uiHandler extends uiBase {
*/
function removePerm($permid, $oid)
{
if($this->gb->checkPerm($this->userid, 'editPerms', $oid))
$this->gb->removePerm($permid);
else $this->_retMsg('Access denied.');
#if($this->gb->checkPerm($this->userid, 'editPerms', $oid))
if (PEAR::isError($this->gb->removePerm($permid))) {
$this->_retMsg('Access denied.');
return FALSE;
}
$this->redirUrl = UI_BROWSER.'?act=permissions&id='.$oid;
return TRUE;
}