mirror of https://github.com/nextcloud/calendar
Merge pull request #5757 from nextcloud/fix/disable-resharing
fix: disable resharing of incoming shared calendars
This commit is contained in:
commit
7a5a6d61bf
|
@ -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