cars & houses are defined as having a relationship with people (eg, people can have multiple cars, houses) in people/relationships.ini
OWNERS in the system have access to people, cars, but should not have access to houses
ADMINS should have access to all tables
So... I have a table class defined on houses:
- Code: Select all
function getPermissions(&$record){
if ($this->isAdmin()) {
return Dataface_PermissionsTool::getRolePermissions('ADMIN');
}
return Dataface_PermissionsTool::NO_ACCESS();
}
If I go to the URL (as an OWNER):
- Code: Select all
?-table=houses
I get a permission denied error (correct).
But If I look at a person record, I see a tab for houses, and clicking on the tab allows me to add a related record to the table.
So... is this expected? What could I be doing wrong?
Thanks!