mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-11 16:35:38 +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']));
|
||||
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));
|
||||
$accessop = new SeedDMS_AccessOperation($dms, null, $user, $settings);
|
||||
if (!$user->isAdmin()) {
|
||||
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
|
||||
}
|
||||
|
@ -39,6 +40,7 @@ if($view) {
|
|||
$view->setParam('log', array());
|
||||
$view->setParam('newusers', array());
|
||||
$view->setParam('colmap', array());
|
||||
$view->setParam('accessobject', $accessop);
|
||||
$view($_GET);
|
||||
exit;
|
||||
}
|
||||
|
|
|
@ -39,6 +39,7 @@ class SeedDMS_View_ImportUsers extends SeedDMS_Theme_Style {
|
|||
function show() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
$user = $this->params['user'];
|
||||
$accessobject = $this->params['accessobject'];
|
||||
$log = $this->params['log'];
|
||||
$newusers = $this->params['newusers'];
|
||||
$colmap = $this->params['colmap'];
|
||||
|
|
Loading…
Reference in New Issue
Block a user