Code

Fixed environment ACL management
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 29 Nov 2005 11:15:14 +0000 (11:15 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 29 Nov 2005 11:15:14 +0000 (11:15 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2124 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/environment/class_environment.inc
plugins/personal/environment/environment.tpl

index b82ef8e4d030b97bf01eb739891019445244035f..c42b2ad25eafb075c7c754b6b20ab8f66cd4d0ef 100644 (file)
@@ -336,6 +336,7 @@ class environment extends plugin
       $smarty->assign("useProfileACL","");
     }else{
       $smarty->assign("gotoProfileFlag_CACL"," disabled ");
+      $smarty->assign("useProfileACL","disabled");
       $smarty->assign("gotoProfileServer"," disabled ");
     }
 
index afe8ae64b145adf85184038e4b64e22dfd4458f8..6829a9d9f7ea2904e0c04b118271677d7ba8dcd5 100644 (file)
@@ -12,7 +12,7 @@
                                <tr>
                                        <td style="vertical-align:top">
                                                <input class="center" type="checkbox" value="1" {$useProfileCHK} name="useProfile" {$useProfileACL} id="useProfile"
-                                                                       onclick="changeState('gotoProfileServer');changeState('gotoProfileFlag_C');">
+                                                                       onclick="changeState('gotoProfileServer');changeState('gotoProfileFlag_C');" {$gotoProfileFlagsACL}>
                                        </td>
                                        <td style="vertical-align:middle;">
                                                <label for="useProfile">{t}Use profile managment{/t}</label>
@@ -38,7 +38,7 @@
                                                        <tr>
                                                                <td colspan=2>  
                                                                        <input class="center" type="checkbox" name="gotoProfileFlag_C" value="C" 
-                                                                               id="gotoProfileFlag_C" {$gotoProfileACL} {$gotoProfileFlag_CCHK}>&nbsp;
+                                                                               id="gotoProfileFlag_C" {$useProfileACL} {$gotoProfileFlagsACL} {$gotoProfileFlag_CCHK}>&nbsp;
                                                                        <label for="gotoProfileFlag_C">{t}Cache profile localy{/t}</label>
                                                                </td>
                                                        </tr>
@@ -75,7 +75,7 @@
                                </tr>
                                <tr>
                                        <td colspan=2>
-                                               <input type="checkbox" name="gotoProfileFlag_L" id="gotoProfileFlag_L" value="L" {$gotoProfileACL} {$gotoProfileFlag_LCHK}>
+                                               <input type="checkbox" name="gotoProfileFlag_L" id="gotoProfileFlag_L" value="L" {$gotoProfileFlagsACL} {$gotoProfileFlag_LCHK}>
                                                <label for="gotoProfileFlag_L">{t}Resolution changeable on runtime{/t}</label>
                                        </td>
                                </tr>