Page 1 of 1

Hide certain records

PostPosted: Tue Dec 18, 2012 1:58 pm
by Gershy
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!

Re: Hide certain records

PostPosted: Tue Dec 18, 2012 2:32 pm
by Gershy
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