Hide certain records

A place for users and developers of the Xataface to discuss and receive support.

Hide certain records

Postby 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
 
Posts: 25
Joined: Wed Nov 14, 2012 12:28 pm

Re: Hide certain records

Postby 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
Gershy
 
Posts: 25
Joined: Wed Nov 14, 2012 12:28 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 11 guests

Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved