From 13001867be61356d0082cb89c0a58fd3aebead9c Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 30 Apr 2021 14:48:13 +0200 Subject: [PATCH] pass accessobject to exitError view --- inc/inc.ClassUI.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inc/inc.ClassUI.php b/inc/inc.ClassUI.php index d88cd2eff..86b776214 100644 --- a/inc/inc.ClassUI.php +++ b/inc/inc.ClassUI.php @@ -180,10 +180,12 @@ class UI extends UI_Default { } /* }}} */ static function exitError($pagetitle, $error, $noexit=false, $plain=false) { - global $theme, $dms, $user; + global $theme, $dms, $user, $settings; + $accessop = new SeedDMS_AccessOperation($dms, null, $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);