-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix events being editable by invitees #3424
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3424 +/- ##
============================================
+ Coverage 27.70% 29.39% +1.69%
- Complexity 123 317 +194
============================================
Files 165 219 +54
Lines 6018 7396 +1378
Branches 877 919 +42
============================================
+ Hits 1667 2174 +507
- Misses 4351 5222 +871
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
I didn't follow that closely… does this mean as a sharee I can no longer edit events inside a calendar that is shared with me? Shouldn't it only affect the invites section (because of https://github.com/nextcloud/server/issues/26668 ?) |
Not quite. This PR doesn't address events on shared calendars but invites to events in your own calendar, where the invitees receive a copy of the even in their personal calendar. That event is currently editable, though the changes go nowhere. With @st3iny's patch the event copy is read-only and only reminders can be edited. |
I see that that's the intention, but I fail to see how it wouldn't affect an event (of which I'm not the organizer) I have in my calendar which someone shared to me. |
@st3iny you tested that as well, right? |
Yes, this introduces a new edge case.
IMO, this bug is out of scope for this PR because we're currently not tracking the owner of an event. |
we forgot about this one. @st3iny please rebase and then we merge & backport :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@miaulalala could you rebase and test on top of latest master? |
af27697
to
105fe19
Compare
Testing looks good, just some superflous stuff I merged might still be in there. @st3iny, if you could look through it again? |
The changes to |
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
c441c33
to
74b78b9
Compare
Ready to merge |
EDIT: Turns out that introduces a new edge case because the events you are invited to are added to your own calendars -> they are not shared with you. I think we really need to track the origin of an event to be able to fix the initial edge case. |
7dbae9d
to
74b78b9
Compare
/backport to stable3.0 |
Fixes #947
Events should be read only if invitees view them. Only the alarms can be edited.