-
Notifications
You must be signed in to change notification settings - Fork 65
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
groupfolder activities on move/rename #1163
Conversation
64535ec
to
bbffa21
Compare
bbffa21
to
232757b
Compare
/rebase |
Signed-off-by: Maxence Lange <[email protected]>
232757b
to
853772f
Compare
// file can be shared using GroupFolders, including ACL check | ||
if ($this->config->getSystemValueBool('activity_use_cached_mountpoints', false)) { | ||
$this->userMountCache->clear(); // clear cache for new data | ||
$affectedUsers = array_merge($affectedUsers, $this->getAffectedUsersFromCachedMounts($fileId)); |
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.
Why merge? Isn't getAffectedUsersFromCachedMounts
supposed to return an updated list?
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.
Same question for other changes.
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.
the list is cached by UserMountCache. because we are moving files, we only get old data from pre-move; clearing the cache allows to get fresh data post-move
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.
Ah, I get it, the list is different pre- and post-move as the impacted user are of course different. Thanks :)
/backport to stable27 |
/backport to stable26 |
/backport to stable25 |
/backport to stable23 |
retrieve the list of affectedUsers related to groupfolders, including ACL checks.
On file moving, it does the handling the same way a file is moved from a shared folder to another.
Meaning that if a user gain or loose read rights during the moving process the file is said as new or deleted
This is from the point of view of a user with no ACL limitation:
And this is from the point of view of a user that have not access to the folder a file is moved to/from: