This function sets the OwnerID for a specific table when Advanced Security options like Users can see and edit their own data are in use.
Syntax
Security_setOwnerId(table, ownerid)
Arguments
table
the name of the table.
ownerid
the owner id.
Return value
No return value.
Example
This example shows how to output the current user data:
table = "posts"
ownerid = "1"
Security_setOwnerId(table, ownerid)
See also: