Better check for personal folders
This commit is contained in:
parent
90484f6ba3
commit
4c6496dae8
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue