DataObjects/Events.php
authoredward <edward@roojs.com>
Mon, 15 Jan 2018 02:39:42 +0000 (10:39 +0800)
committeredward <edward@roojs.com>
Mon, 15 Jan 2018 02:39:42 +0000 (10:39 +0800)
DataObjects/Events.php

index 6e34de9..0f4830b 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;
-            
         }
     }