client_applications_acl($access, $caid)Custom acl function.
client_applications/client_applications.module, line 108
<?php
function client_applications_acl($access, $caid) {
global $user;
if ($user->uid == 1) { // admin
return TRUE;
}
$owner = db_result(db_query("SELECT owner FROM {client_applications} WHERE caid = %d", $caid));
if ($owner == '') { // no owner set
return TRUE;
}
return user_access($access) && in_array($owner, $user->roles);
}
?>