-
Notifications
You must be signed in to change notification settings - Fork 282
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
allow user to toggle visibility of the calendar for a deck board #4622
Conversation
0ddf568
to
ed6bef9
Compare
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.
Makes sense in general, thanks a lot. However we'll need some additional permission check then for the places where we update the board details through the property changes: https://github.com/nextcloud/deck/blob/main/lib/DAV/Calendar.php#L187-L204
ed6bef9
to
7ff29a9
Compare
The calendar object needs to be exposed with "write" properties in order to allow users to hide/show the corresponding calendar in the calendar app. It doesn't has any affects on the general permissions for the whole board or the tasks. As soon as you select a task you jump to the deck app where the normal deck permissions are applied. fixes: #4618 Signed-off-by: Björn Schießle <bjoern@nextcloud.com>
7ff29a9
to
4804ca3
Compare
@juliushaertl I added the additional checks. |
Passing run #845 ↗︎
Details:
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
4804ca3
to
330eaea
Compare
…e user doesn't has the "manage" permissions Signed-off-by: Bjoern Schiessle <bjoern@nextcloud.com>
330eaea
to
e2a4737
Compare
Tested and works. I quickly fixed the php code style error. |
DCO check seems confused |
/backport to stable26 |
/backport to stable25 |
Resolves: Deck calendar always visible in calendar app #4618
Target version: main
Summary
The calendar object needs to be exposed with "write-properties" in order to allow users to hide/show the corresponding calendar in the calendar app. It doesn't has any affects on the general permissions for the whole board or the individual cards. As soon as you select a calendar item you jump to the deck app where the normal deck permissions are applied.
As far as I understand it, caldav knows two kind if write permissions:
Looking at how we treat shared regular calendars, I think the solution should be fine: https://github.com/nextcloud/server/blob/master/apps/dav/lib/CalDAV/Calendar.php#L181
TODO
Checklist
@juliushaertl This was a quick try to fix a issue I discovered, does it makes sense?