What would be a good way to design access to document for a certain duration only?
e.g. give access on a file or folder to a user or role, then have the system automatically remove the given access privilege in, say, 7 days...
I am thinking about designing an interface that gives the privilege then at same time adds a cron job which reverses the privilege after a set number of days. But, with so many files/folders, there would be tons of cron jobs which could adversely impact performance. Also, in case the user changes the privileges again, it would be very messy to change the existing cron jobs related to the same file or folder.
Did anyone try something similar? any ideas? thank you all.
e.g. give access on a file or folder to a user or role, then have the system automatically remove the given access privilege in, say, 7 days...
I am thinking about designing an interface that gives the privilege then at same time adds a cron job which reverses the privilege after a set number of days. But, with so many files/folders, there would be tons of cron jobs which could adversely impact performance. Also, in case the user changes the privileges again, it would be very messy to change the existing cron jobs related to the same file or folder.
Did anyone try something similar? any ideas? thank you all.