}
- function checkDebugPost()
- {
- return (!empty($_GET['_post']) || !empty($_GET['_debug_post'])) &&
- $this->authUser &&
- method_exists($this->authUser,'groups') &&
- in_array('Administrators', $this->authUser->groups('name'));
-
- }
-
function dataObject($tab)
{
if (is_array($this->validTables) && !in_array($tab, $this->validTables)) {
return $x;
}
+
/*
* From Pman.php
*/
return;
}
- $au = $this->getAuthUser();
-
$e = DB_DataObject::factory('Events');
$e->init($act,$obj,$remarks);
}
+ function checkPerm($obj, $lvl, $req= null)
+ {
+ if (!method_exists($obj, 'checkPerm')) {
+ return true;
+ }
+ if ($obj->checkPerm($lvl, $this->getAuthUser(), $req)) {
+ return true;
+ }
+
+ return false;
+ }
+
function getAuthUser()
{
die('Get auth user is not implement.');