Better check for personal folders

This commit is contained in:
Thomas Bruederli 2012-10-03 11:53:02 +02:00
parent 90484f6ba3
commit 4c6496dae8
2 changed files with 2 additions and 2 deletions

View file

@ -60,7 +60,7 @@ class kolab_calendar
// Set readonly and alarms flags according to folder permissions
if ($this->ready) {
if ($this->get_owner() == $_SESSION['username']) {
if ($this->storage->get_namespace() == 'personal') {
$this->readonly = false;
$this->alarms = true;
}

View file

@ -94,7 +94,7 @@ class tasklist_kolab_driver extends tasklist_driver
$name = kolab_storage::folder_displayname(kolab_storage::object_name($utf7name), $listnames);
if ($folder->get_owner() == $_SESSION['username']) {
if ($folder->get_namespace() == 'personal') {
$readonly = false;
$alarms = true;
}