diff --git a/inc/inc.ClassUI.php b/inc/inc.ClassUI.php index 638848884..53919d74e 100644 --- a/inc/inc.ClassUI.php +++ b/inc/inc.ClassUI.php @@ -20,6 +20,7 @@ require_once('inc.ClassUI_Default.php'); require_once('inc.ClassViewCommon.php'); +require_once('inc.ClassAccessOperation.php'); /* $theme was possibly set in inc.Authentication.php */ if (!isset($theme) || strlen($theme)==0) { @@ -185,11 +186,9 @@ class UI extends UI_Default { static function exitError($pagetitle, $error, $noexit=false, $plain=false) { global $theme, $dms, $user, $settings; - $accessop = new SeedDMS_AccessOperation($dms, $user, $settings); $view = UI::factory($theme, 'ErrorDlg'); $view->setParam('dms', $dms); $view->setParam('user', $user); - $view->setParam('accessobject', $accessop); $view->setParam('pagetitle', $pagetitle); $view->setParam('errormsg', $error); $view->setParam('plain', $plain);