pass accessobject to exitError view

This commit is contained in:
Uwe Steinmann 2021-04-30 14:48:13 +02:00
parent 98f7fc85f4
commit 13001867be

View File

@ -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);