Grant timed view_page access

Permalink
Can't really find any documentation about this so I'll try here..

I'm building a csv products importing tool and need to handle permission during the import. I need to grant view access to a group during a specific timespan. For example: "show product X to group Y tomorrow from 12.00 to 14.00".

Has anyone done something similar?

 
rpro replied on at Permalink Best Answer Reply
Okey so I got it to work by creating a PermissionDuration object and updating the PermissionAccessList table with the created duration object ID.

Created a gist of my solution
https://gist.github.com/muhlegg/10822475...
SheldonB replied on at Permalink Reply
SheldonB
glad you found it but i read your first questions and it sounds like you wanted the functions from advanced permissions

https://www.concrete5.org/documentation/using-concrete5/dashboard/sy...
rpro replied on at Permalink Reply
Well sure, that's the functionality I'm after, but I'll have to implement it in my package code so the UI is not an option here.