mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
Undo use of acl until it is working
This commit is contained in:
parent
5f99335cd0
commit
7901f3f256
@ -82,28 +82,28 @@
|
|||||||
|
|
||||||
function addressbook_read_entry($id,$fields,$userid="") {
|
function addressbook_read_entry($id,$fields,$userid="") {
|
||||||
global $this,$rights;
|
global $this,$rights;
|
||||||
if ($rights & PHPGW_ACL_READ) {
|
//if ($rights & PHPGW_ACL_READ) {
|
||||||
$entry = $this->read_single_entry($id,$fields);
|
$entry = $this->read_single_entry($id,$fields);
|
||||||
return $entry;
|
return $entry;
|
||||||
} else {
|
//} else {
|
||||||
return "No access";
|
// return "No access";
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
function addressbook_add_entry($userid,$fields) {
|
function addressbook_add_entry($userid,$fields) {
|
||||||
global $this,$rights;
|
global $this,$rights;
|
||||||
if ($rights & PHPGW_ACL_ADD) {
|
//if ($rights & PHPGW_ACL_ADD) {
|
||||||
$this->add($userid,$fields);
|
$this->add($userid,$fields);
|
||||||
}
|
//}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
function addressbook_update_entry($id,$userid,$fields) {
|
function addressbook_update_entry($id,$userid,$fields) {
|
||||||
global $this,$rights;
|
global $this,$rights;
|
||||||
//$rights = $phpgw->acl->get_rights($owner,$phpgw_info["flags"]["currentapp"]);
|
//$rights = $phpgw->acl->get_rights($owner,$phpgw_info["flags"]["currentapp"]);
|
||||||
if ($rights & PHPGW_ACL_EDIT) {
|
//if ($rights & PHPGW_ACL_EDIT) {
|
||||||
$this->update($id,$userid,$fields);
|
$this->update($id,$userid,$fields);
|
||||||
}
|
//}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user