From: Marcin Haba Date: Sun, 6 Aug 2017 08:13:32 +0000 (+0200) Subject: baculum: Remove assigning to api host when user is deleted X-Git-Tag: Release-9.0.3~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6a59d68d248f4d35b44e4b5016582737c3004783;p=bacula%2Fbacula baculum: Remove assigning to api host when user is deleted --- diff --git a/gui/baculum/protected/Web/Portlets/Users.php b/gui/baculum/protected/Web/Portlets/Users.php index 265ae88096..fca312f78b 100644 --- a/gui/baculum/protected/Web/Portlets/Users.php +++ b/gui/baculum/protected/Web/Portlets/Users.php @@ -21,7 +21,7 @@ */ -Prado::using('System.Web.UI.WebControls.TConditional'); +Prado::using('System.Web.UI.ActiveControls.TActiveRepeater'); Prado::using('Application.Web.Portlets.Portlets'); class Users extends Portlets { @@ -96,6 +96,10 @@ class Users extends Portlets { case 'rmuser': { if ($user != $_SERVER['PHP_AUTH_USER']) { $this->getModule('basic_webuser')->removeUser($user); + if (array_key_exists('users', $this->web_config) && array_key_exists($user, $this->web_config['users'])) { + unset($this->web_config['users'][$user]); + } + $this->getModule('web_config')->setConfig($this->web_config); $this->setUsers(); } break; diff --git a/gui/baculum/protected/Web/Portlets/Users.tpl b/gui/baculum/protected/Web/Portlets/Users.tpl index 393b08c213..07fed30b1f 100644 --- a/gui/baculum/protected/Web/Portlets/Users.tpl +++ b/gui/baculum/protected/Web/Portlets/Users.tpl @@ -1,6 +1,6 @@ Add<%[ Add new user ]%> - + @@ -61,7 +61,7 @@
-
+

<%[ Please note that for each user (excluding administrator) there should exist separate Bconsole config file in form: ]%>