Let's say that the users of my database can write reports, and each report has a body of text, and the name of its owner, and those get stored in mysql.
When the user navigates to the "report" table in xataface, how would I only allow them to access reports whose names correspond to the user's name?
I've tried just adding in an if-statement to getPermissions so that if the names don't match NO_ACCESS is returned, but that means that if a single report's name doesn't match, the entire table is inaccessible due to the permissions being insufficient.
Any ideas? Thanks in advance!