06-03-2017, 09:54 PM
Hi,
You will have to add an access permission hook with your logic. Basically, an SQL statement that returns the set of document IDs that are related to the user based on your new field.
This is explained here:
http://corebos.org/documentation/doku.php?id=en:devel:corebos_permission_hooks
and there is an example here:
https://github.com/tsolucio/corebos/blob/master/build/HelperScripts/coreBOSEventsPermission.php
precisely, you have to add the addToUserPermission hook and return an SQL similar to
https://github.com/tsolucio/corebos/blob/master/build/HelperScripts/coreBOSEventsPermission.php#L121
Welcome to coreBOS :-)
You will have to add an access permission hook with your logic. Basically, an SQL statement that returns the set of document IDs that are related to the user based on your new field.
This is explained here:
http://corebos.org/documentation/doku.php?id=en:devel:corebos_permission_hooks
and there is an example here:
https://github.com/tsolucio/corebos/blob/master/build/HelperScripts/coreBOSEventsPermission.php
precisely, you have to add the addToUserPermission hook and return an SQL similar to
https://github.com/tsolucio/corebos/blob/master/build/HelperScripts/coreBOSEventsPermission.php#L121
Welcome to coreBOS :-)
Joe
TSolucio
TSolucio