Merge pull request #5757 from nextcloud/fix/disable-resharing

fix: disable resharing of incoming shared calendars
This commit is contained in:
Richard Steinmetz 2024-02-13 17:21:12 +01:00 committed by GitHub
commit 7a5a6d61bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

View File

@ -139,6 +139,12 @@ export default {
* @return {boolean}
*/
canBeShared() {
// The backend falsely reports incoming editable shares as being shareable
// Ref https://github.com/nextcloud/calendar/issues/5755
if (this.calendar.isSharedWithMe) {
return false
}
return this.calendar.canBeShared || this.calendar.canBePublished
},
/**

View File

@ -151,6 +151,12 @@ export default {
* @return {boolean}
*/
canBeShared() {
// The backend falsely reports incoming editable shares as being shareable
// Ref https://github.com/nextcloud/calendar/issues/5755
if (this.calendar.isSharedWithMe) {
return false
}
return this.calendar.canBeShared || this.calendar.canBePublished
},