-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
respect privacy options of event/task in activity for shared calendar #13331
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
Conversation
do not show calendar events in activity log if event is not public Signed-off-by: Fabian Dellwing <f.dellwing@netfutura.de>
make sure to only hide calendar events, not todos show all events in owner activity log Signed-off-by: Fabian Dellwing <f.dellwing@netfutura.de>
tcitworld
left a comment
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.
Looks good to me, a test inside https://github.com/nextcloud/server/blob/master/apps/dav/tests/unit/CalDAV/Activity/BackendTest.php would be nice.
|
I'm really not good with tests in PHP, will look into it. |
|
I'll be happy to try to provide some if you don't feel like it. :) |
|
@fdellwing first of all thanks :) So this is to hide activities for private events in shared calendars right? |
|
Yes, that is correct. |
fix indentation Signed-off-by: Fabian Dellwing <f.dellwing@netfutura.de>
|
I have no clue why the test is failing, maybe unrelated? |
Signed-off-by: Fabian Dellwing <f.dellwing@netfutura.de>
|
I did add an use statement for the |
|
I think I would still trigger an activity and just leave out the details/name. |
Maybe for events that are set to "share as show busy only", but not for events set to "hide when sharing". :) |
Yes, exactly. @fdellwing thanks for the PR. Do you want to integrate this change? Or shall I take it over? |
|
I can change it so, that "show busy" generates an activity without details and "private" does not generate an activity at all. It will have to wait until tomorrow though, I'll knock of work in 10 minutes. If you wanna change it yourself, feel free to take the PR over. |
| $users[] = $owner; | ||
|
|
||
| foreach ($users as $user) { | ||
| if ($classification !== CalDavBackend::CLASSIFICATION_PUBLIC && $user !== $owner) { |
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.
if ($classification === CalDavBackend::CLASSIFICATION_PRIVATE && $user !== $owner) {
|
Actually let me take this over and add a step to clean it up. |
|
@fdellwing can you send me an email to |
|
Sure thing. |
do not show calendar events in activity log if event is not public