Skip to content

Commit

Permalink
fix: disable resharing of incoming shared calendars
Browse files Browse the repository at this point in the history
Fix #5755

Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
  • Loading branch information
st3iny authored and backportbot[bot] committed Feb 13, 2024
1 parent c2ce649 commit 6f1e579
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Expand Up @@ -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
}

Check warning on line 147 in src/components/AppNavigation/CalendarList/CalendarListItem.vue

View check run for this annotation

Codecov / codecov/patch

src/components/AppNavigation/CalendarList/CalendarListItem.vue#L146-L147

Added lines #L146 - L147 were not covered by tests
return this.calendar.canBeShared || this.calendar.canBePublished
},
/**
Expand Down
6 changes: 6 additions & 0 deletions src/components/AppNavigation/EditCalendarModal.vue
Expand Up @@ -141,6 +141,12 @@ export default {
* @return {boolean}
*/
canBeShared() {
// The backend falsely reports incoming editable shares as being shareable

Check warning on line 144 in src/components/AppNavigation/EditCalendarModal.vue

View check run for this annotation

Codecov / codecov/patch

src/components/AppNavigation/EditCalendarModal.vue#L144

Added line #L144 was not covered by tests
// Ref https://github.com/nextcloud/calendar/issues/5755
if (this.calendar.isSharedWithMe) {
return false
}

Check warning on line 149 in src/components/AppNavigation/EditCalendarModal.vue

View check run for this annotation

Codecov / codecov/patch

src/components/AppNavigation/EditCalendarModal.vue#L148-L149

Added lines #L148 - L149 were not covered by tests
return this.calendar.canBeShared || this.calendar.canBePublished
},
Expand Down

0 comments on commit 6f1e579

Please sign in to comment.