Code

Do not display krb-si actions, if we are not useing the MIT kerberos method.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 8 Jul 2008 09:00:50 +0000 (09:00 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 8 Jul 2008 09:00:50 +0000 (09:00 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11551 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/mit-krb5/admin/systems/services/kerberos/class_goKrbServer.inc
gosa-plugins/mit-krb5/admin/systems/services/kerberos/goKrbServer.tpl

index 36dc66694ec6997630f6723acbe20dc8e3343182..ce84ffd75d85bfd48249cba41a629178c104f467 100644 (file)
@@ -88,6 +88,7 @@ class goKrbServer extends goService{
   public function execute()
   { 
     $smarty = get_smarty(); 
+    $smarty->assign("MIT_KRB", class_available("passwordMethodMIT"));
 
     if(!$this->view_logged){
       $this->view_logged = TRUE;
index 843ea9d3bf0e8f75b4a45f723d9c0f4456014735..251b77e59946b5ebd33ad0ab71374374fc485a8e 100644 (file)
@@ -11,6 +11,7 @@
                </table>
      </td>
     </tr>
+{if $MIT_KRB}
     <tr>
      <td>
                <h2>{t}Policies{/t}</h2>
@@ -26,6 +27,7 @@
                <input type='submit' name="policy_add" value="{msgPool type=addButton}">
      </td>
     </tr>
+{/if}
    </table>
 
 <p class='seperator'>&nbsp;</p>