beforeRead event handler to protect file reads
Hi all together,
in my application, the users store a lot of files on the server, which are then read by the same user or others in the same company. That means I cannot set the read permission per file only to the one specific user which uploaded the file.
But then other users (in the authenticated users group) can also read these files if they know the path.
Here a beforeRead Event handler would be nice, to check whether the user is allowed to read this file. (I have stored the Information in the datebase which file belongs to which user and who is allowed to Access the file.)