server icon indicating copy to clipboard operation
server copied to clipboard

Add a method to get all users with access to a file in OCP

Open come-nc opened this issue 3 years ago • 0 comments

  • 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

come-nc avatar Jun 22 '23 13:06 come-nc