1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-18 07:52:21 +01:00

Contacts: Temporarily disable permission check in Contact::__set()

This commit is contained in:
Thomas Tanghus 2013-05-04 22:47:34 +02:00
parent 7bcd206679
commit 56a982b19c

View File

@ -643,9 +643,9 @@ class Contact extends VObject\VCard implements IPIMObject {
}
public function __set($key, $value) {
if(!$this->hasPermission(\OCP\PERMISSION_UPDATE)) {
/*if(!$this->hasPermission(\OCP\PERMISSION_UPDATE)) {
throw new \Exception('Access denied');
}
}*/
parent::__set($key, $value);
$this->setSaved(false);
}