Have run into something that I thought was simple, but am having a bear of a time getting it to actually work.
I have two tables, and without getting too deep into things, the relationship is pretty simple. A member will have an
assigned sales rep, and that's working fine. Pull up a member? I see the sales rep...but, for the related record
I don't want ANYONE to be able to edit, add, or delete. Just read only, but whenever I click into that related-record
table, I am able to edit/delete/update/etc.
Added this to the parent table PHP with some success:
function rel_SalesRep__permissions($record){
// $record is a Dataface_Record object
return array(
'view related records' => 1,
'add new related records' => 0,
'add existing related records' => 0,
'remove related records' => 0,
'delete related records' => 0
);
}
And yet all those things remain. If I set the view to 0, the related record goes away, so I know that part is being
read, and based on the docs, that should work. Don't have any roles/permissions/logins defined at all...this is
only read by very few people internally, and this behavior should be global.
Tried a permissions.ini, but it doesn't seem to have any effect at all....thoughts are welcome, please.
Thanks