mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 12:41:30 +00:00
pass access object to view
This commit is contained in:
parent
5baac2b4ff
commit
98e5c868a4
|
@ -30,6 +30,7 @@ require_once("inc/inc.Authentication.php");
|
||||||
|
|
||||||
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||||
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));
|
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));
|
||||||
|
$accessop = new SeedDMS_AccessOperation($dms, null, $user, $settings);
|
||||||
if (!$user->isAdmin()) {
|
if (!$user->isAdmin()) {
|
||||||
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
|
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
|
||||||
}
|
}
|
||||||
|
@ -39,6 +40,7 @@ if($view) {
|
||||||
$view->setParam('log', array());
|
$view->setParam('log', array());
|
||||||
$view->setParam('newusers', array());
|
$view->setParam('newusers', array());
|
||||||
$view->setParam('colmap', array());
|
$view->setParam('colmap', array());
|
||||||
|
$view->setParam('accessobject', $accessop);
|
||||||
$view($_GET);
|
$view($_GET);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,6 +39,7 @@ class SeedDMS_View_ImportUsers extends SeedDMS_Theme_Style {
|
||||||
function show() { /* {{{ */
|
function show() { /* {{{ */
|
||||||
$dms = $this->params['dms'];
|
$dms = $this->params['dms'];
|
||||||
$user = $this->params['user'];
|
$user = $this->params['user'];
|
||||||
|
$accessobject = $this->params['accessobject'];
|
||||||
$log = $this->params['log'];
|
$log = $this->params['log'];
|
||||||
$newusers = $this->params['newusers'];
|
$newusers = $this->params['newusers'];
|
||||||
$colmap = $this->params['colmap'];
|
$colmap = $this->params['colmap'];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user