Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Restrict access in record
#2
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 :-)
Joe
TSolucio
Reply


Messages In This Thread
Restrict access in record - Aleks - 06-03-2017, 02:54 PM
RE: Restrict access in record - joebordes - 06-03-2017, 09:54 PM
RE: Restrict access in record - joebordes - 06-03-2017, 09:57 PM
RE: Restrict access in record - Aleks - 06-04-2017, 03:32 PM
RE: Restrict access in record - joebordes - 06-04-2017, 08:23 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)