fix: disable resharing of incoming shared calendars

Fix https://github.com/nextcloud/calendar/issues/5755

Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
This commit is contained in:
Richard Steinmetz 2024-02-13 14:08:30 +01:00
parent 8e495033c2
commit c370c1163a
No known key found for this signature in database
GPG Key ID: 27137D9E7D273FB2
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
},