Hide certain records
Archived from the Xataface Users forum.
Gershy — Tue Dec 18, 2012 1:58 pm
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!
Gershy — Tue Dec 18, 2012 2:32 pm
Solved it; I should have searched google a little more before asking the question.
This page has exactly what I was looking for: http://xataface.com/documentation/how-t … ty_filters