mirror of https://github.com/nextcloud/calendar
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:
parent
8e495033c2
commit
c370c1163a
|
@ -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
|
||||
},
|
||||
/**
|
||||
|
|
|
@ -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
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue