-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3275 from nextcloud/fix/2787/busy_also_for_creato…
…r_bug fix shared-as-busy events for owner
- Loading branch information
Showing
2 changed files
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
<?php | ||
/** | ||
* @copyright Copyright (c) 2016, ownCloud, Inc. | ||
* @copyright Copyright (c) 2017, Georg Ehrke | ||
* | ||
* @author Thomas Müller <[email protected]> | ||
* @author Georg Ehrke <[email protected]> | ||
* | ||
* @license AGPL-3.0 | ||
* | ||
|
@@ -42,7 +44,11 @@ function get() { | |
} | ||
|
||
private function isShared() { | ||
return isset($this->calendarInfo['{http://owncloud.org/ns}owner-principal']); | ||
if (!isset($this->calendarInfo['{http://owncloud.org/ns}owner-principal'])) { | ||
return false; | ||
} | ||
|
||
return $this->calendarInfo['{http://owncloud.org/ns}owner-principal'] !== $this->calendarInfo['principaluri']; | ||
} | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters