Hi Steve,
What can I do to restrict access to all records in a table except that which belongs to the logged in user with xataface.
Regards
record permissions
4 posts
• Page 1 of 1
record permissionsHi Steve,
What can I do to restrict access to all records in a table except that which belongs to the logged in user with xataface. Regards worship the Creator of the Universe and not the creation
Suppose you have a column in each record that records the username of the owner, called 'owner'.
Then in your delegate class:
Unfortunately in list view it will still show all records, it will just say "NO ACCESS" to the records that you don't have access to. You can correct this by adding a security filter. In your delegate class:
Re: record permissionsHi,
is this solution still working? I try to allow my users to access only their data. But with this code i get this error: Fatal error: Cannot redeclare init() (previously declared in /home/www/cwcity/hosting/i/r/irgps/htdocs/xataface-1.3.2/init.php:22) in /home/www/cwcity/hosting/i/r/irgps/htdocs/conf/ApplicationDelegate.php on line 20 Greetz
Re: record permissionsYou need to implement init() inside of your delegate class so that it is a method of the delegate class and not a global function.
-Steve
4 posts
• Page 1 of 1
Who is onlineUsers browsing this forum: No registered users and 12 guests |