potential security hole big enough to drive a truck through!
That's a little dramatic.
No one, except the admin, should be able to see anyone else's profile settings
That's up to the person who develops the system. For example in Facebook, all of my friends can see my profile.
If I log into my little demo site as Joe User I can see not only my profile but the admin profile in it's entirety. This should not be able to happen. No one should be able to see the admin's login name, role or anything else about admin.
I agree. Security is important. That's why it is up to you as the developer of the application to set appropriate permissions for your application.
I don't need or want anyone editing any profiles.
Then don't give edit privileges to the users table to anyone. It's quite simple:
- Code: Select all
function getPermissions(&$record){
return Dataface_PermissionsTool::NO_ACCESS();
}
I assume you're using the best practice of setting very restrictive permissions via the application delegate class and then opening up permissions on a per table basis via their respective delegate classes.
Security is very important! Xataface provides you with the tools to lock down your application with quite fine-grained precision. It's up to you to make sure you do this.
-Steve