Commit b94ebc7a3137c3258926142cb56911f45cf9b16d

Authored by michael
1 parent ac438589

(#2959) inserted additional search permissions on successful user group link addition


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2726 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/addUserToGroupBL.php
@@ -55,7 +55,6 @@ if (checkSession()) { @@ -55,7 +55,6 @@ if (checkSession()) {
55 } else { 55 } else {
56 $oPatternCustom->setHtml(getPage($fUserID,$fGroupID)); 56 $oPatternCustom->setHtml(getPage($fUserID,$fGroupID));
57 $main->setFormAction($_SERVER["PHP_SELF"] . "?fUserSet=1&fUserAssign=1"); 57 $main->setFormAction($_SERVER["PHP_SELF"] . "?fUserSet=1&fUserAssign=1");
58 -  
59 } 58 }
60 } 59 }
61 60
@@ -63,6 +62,8 @@ if (checkSession()) { @@ -63,6 +62,8 @@ if (checkSession()) {
63 // else add to db and then goto page succes 62 // else add to db and then goto page succes
64 $oUserGroup = new GroupUserLink($fGroupID,$fUserID); 63 $oUserGroup = new GroupUserLink($fGroupID,$fUserID);
65 if($oUserGroup->create()) { 64 if($oUserGroup->create()) {
  65 + // update group search permissions
  66 + $oUserGroup->updateSearchPermissions();
66 $oPatternCustom->setHtml(getPageSuccess("&fUserID=$fUserID")); 67 $oPatternCustom->setHtml(getPageSuccess("&fUserID=$fUserID"));
67 } else { 68 } else {
68 $oPatternCustom->setHtml(getPageFail("&fUserID=$fUserID")); 69 $oPatternCustom->setHtml(getPageFail("&fUserID=$fUserID"));