function applyPermissionFilters($q, $au ,$roo)
{
- if (!$au->hasPerm("Admin.Admin_Tab", 'S') && !$au->hasPerm("BAdmin.BAdmin", 'S')) {
+ if (!$au->hasPerm("Admin.Admin_Tab", 'S')) {
//DB_DataObject::DebugLevel(1);
// they can only view their changes..
$this->whereAdd("($tn.person_id = {$au->id} OR $tn.person_id = 0)");
// $this->person_id = $au->id;
-
}
}
@mkdir(dirname($file),0700,true); // this might fail if it does not have correct permissions..
if (!file_exists(dirname($file))) {
+ print_r($this);
die("could not create $file - permissons are not correct"); // fatal, otherwise we loop!?
}