From c3efa61e0b8ab30df1cb8ab53490786d26abeac2 Mon Sep 17 00:00:00 2001 From: edward Date: Mon, 15 Jan 2018 10:38:12 +0800 Subject: [PATCH] DataObjects/Events.php --- DataObjects/Events.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/DataObjects/Events.php b/DataObjects/Events.php index 9c4569d1..8deafa52 100644 --- a/DataObjects/Events.php +++ b/DataObjects/Events.php @@ -257,9 +257,15 @@ class Pman_Core_DataObjects_Events extends DB_DataObject } - function permission_filter() + function applyPermissionFilters() { - + 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)"); +// $this->person_id = $au->id; + + } } /** -- 2.39.2