Multiple Users, one site [SOLVED]
Posted: Tue Aug 31, 2010 6:50 am
Hi All,
Wondering if anyone has done this before. I'm going to start a second Xataface site. This one will contain gym workout details for various users. Now, Obviously, I don't want UserA to be able to edit UserB's workout details (or even see them for that matter).
If I have a table called "Chest" (for example - to indicate body part worked on), how do I allow UserA to add in his details and only see his details...and the same for UserB, UserC, etc, etc. I guess in SQl some sort of WHERE USER = UserA needs to be in place but I'm not sure how to do it from the SQl side or the Xataface side.
I think this might work - http://xataface.com/documentation/how-t ... ty_filters but not sure if that just applies to tables "owned" by each user or if it applies to tables that need to be written to by all users.
Any thoughts?
PS: Steve - the link to the filters section needs updating as it's currently broken. Cheers
Paul
Wondering if anyone has done this before. I'm going to start a second Xataface site. This one will contain gym workout details for various users. Now, Obviously, I don't want UserA to be able to edit UserB's workout details (or even see them for that matter).
If I have a table called "Chest" (for example - to indicate body part worked on), how do I allow UserA to add in his details and only see his details...and the same for UserB, UserC, etc, etc. I guess in SQl some sort of WHERE USER = UserA needs to be in place but I'm not sure how to do it from the SQl side or the Xataface side.
I think this might work - http://xataface.com/documentation/how-t ... ty_filters but not sure if that just applies to tables "owned" by each user or if it applies to tables that need to be written to by all users.
Any thoughts?
PS: Steve - the link to the filters section needs updating as it's currently broken. Cheers
Paul