DataObjects/Core_group.php
[Pman.Core] / DataObjects / Events.php
index 6e34de9..e5650a8 100644 (file)
@@ -259,12 +259,11 @@ class Pman_Core_DataObjects_Events extends DB_DataObject
     
     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;
-            
         }
     }
     
@@ -511,6 +510,7 @@ class Pman_Core_DataObjects_Events extends DB_DataObject
             
             @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!?
             }