server
server copied to clipboard
Add a method to get all users with access to a file in OCP
- Resolves: #
Summary
In a lot of places we need the list of users having access to a file, this is especially often the case in activity providers in applications, to notify all users of an event. Currently the implementation is done differently each time, this is an attempt to bring a method in OCP that allows to get the list of users having access to a file and under which path. For comments for example, this fixes showing the activity event to users having access to the file through a groupfolder.
TODO
- [ ] See if this is the right implementation
- [ ] Use it in all places that needs this feature
- [ ] Use it in applications where it makes sense, especially activity
- [ ] See how groupfolder ACLs could be integrated in there to avoid returning users which actually do not have access to the file
Checklist
- Code is properly formatted
- Sign-off message is added to all commits
- [ ] Tests (unit, integration, api and/or acceptance) are included
- [ ] Screenshots before/after for front-end changes
- [ ] Documentation (manuals or wiki) has been updated or is not required
- [ ] Backports requested where applicable (ex: critical bugfixes)