Uh oh!
There was an error while loading. Please reload this page.
respect privacy options of event/task in activity for shared calendar - #13331
respect privacy options of event/task in activity for shared calendar#13331fdellwing wants to merge 4 commits into
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.
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.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
fdellwing
commented
Jan 3, 2019
I'm really not good with tests in PHP, will look into it. |
tcitworld
commented
Jan 3, 2019
I'll be happy to try to provide some if you don't feel like it. :) |
rullzer
commented
Jan 4, 2019
@fdellwing first of all thanks :) So this is to hide activities for private events in shared calendars right? |
fdellwing
commented
Jan 4, 2019
Yes, that is correct. |
fix indentation Signed-off-by: Fabian Dellwing <f.dellwing@netfutura.de>
fdellwing
commented
Jan 4, 2019
I have no clue why the test is failing, maybe unrelated? |
Uh oh!
There was an error while loading. Please reload this page.
Signed-off-by: Fabian Dellwing <f.dellwing@netfutura.de>
I did add an use statement for the |
nickvergessen
commented
Jan 8, 2019
I think I would still trigger an activity and just leave out the details/name. |
georgehrke
commented
Jan 8, 2019
Maybe for events that are set to "share as show busy only", but not for events set to "hide when sharing". :) |
nickvergessen
commented
Jan 8, 2019
Yes, exactly. @fdellwing thanks for the PR. Do you want to integrate this change? Or shall I take it over? |
fdellwing
commented
Jan 8, 2019
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.
if ($classification === CalDavBackend::CLASSIFICATION_PRIVATE && $user !== $owner) {
nickvergessen
commented
Jan 8, 2019
Actually let me take this over and add a step to clean it up. |
nickvergessen
commented
Jan 9, 2019
@fdellwing can you send me an email to |
fdellwing
commented
Jan 9, 2019
Sure thing. |
do not show calendar events in activity log if event is not public