DataObjects/Events.php
authoredward <edward@roojs.com>
Mon, 20 Nov 2017 04:49:21 +0000 (12:49 +0800)
committeredward <edward@roojs.com>
Mon, 20 Nov 2017 04:49:21 +0000 (12:49 +0800)
DataObjects/Events.php

index daefda6..db9145b 100644 (file)
@@ -107,7 +107,7 @@ class Pman_Core_DataObjects_Events extends DB_DataObject
         }
         */
         
-        if (!$au->hasPerm("Admin.Admin_Tab", 'S') &&  !$au->hasPerm("BAdmin.Admin_Tab", 'S')) {
+        if (!$au->hasPerm("Admin.Admin_Tab", 'S') &&  !$au->hasPerm("BAdmin.BAdmin", 'S')) {
             //DB_DataObject::DebugLevel(1);
             // they can only view their changes..
             $this->whereAdd("($tn.person_id = {$au->id} OR $tn.person_id = 0)");