From 2124a6c60aa2d92aaf6baca2fdf9877ae526e2b0 Mon Sep 17 00:00:00 2001 From: steinm Date: Thu, 24 Jan 2013 09:33:10 +0000 Subject: [PATCH] allow to set mandatory workflow do not password strength bar if turned off pass selected user --- views/bootstrap/class.UsrMgr.php | 85 +++++++++++++++++++++++++++++--- 1 file changed, 78 insertions(+), 7 deletions(-) diff --git a/views/bootstrap/class.UsrMgr.php b/views/bootstrap/class.UsrMgr.php index 834329350..9f9115406 100644 --- a/views/bootstrap/class.UsrMgr.php +++ b/views/bootstrap/class.UsrMgr.php @@ -34,12 +34,14 @@ class LetoDMS_View_UsrMgr extends LetoDMS_Bootstrap_Style { function show() { /* {{{ */ $dms = $this->params['dms']; $user = $this->params['user']; + $seluser = $this->params['seluser']; $users = $this->params['allusers']; $groups = $this->params['allgroups']; $passwordstrength = $this->params['passwordstrength']; $passwordexpiration = $this->params['passwordexpiration']; $httproot = $this->params['httproot']; $enableuserimage = $this->params['enableuserimage']; + $workflowmode = $this->params['workflowmode']; $this->htmlStartPage(getMLText("admin_tools")); $this->globalNavigation(); @@ -98,7 +100,7 @@ function showUser(selectObj) { $selected=0; $count=2; foreach ($users as $currUser) { - if (isset($_GET["userid"]) && $currUser->getID()==$_GET["userid"]) $selected=$count; + if ($seluser && $currUser->getID()==$seluser->getID()) $selected=$count; print "