Code

Updated conferences
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 17 Oct 2008 13:15:50 +0000 (13:15 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 17 Oct 2008 13:15:50 +0000 (13:15 +0000)
-Added missing language ACL

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12730 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/gofon/gofon/conference/class_phoneConferenceGeneric.inc
gosa-plugins/gofon/gofon/conference/generic.tpl

index afd83c515d02fe93afce04a71aea602f187e7c6a..471dfef11026346106a6dbbdcda7a45b8eb7e24c 100644 (file)
@@ -283,7 +283,7 @@ class conference extends plugin
     if(isset($_POST['phoneConferenceGeneric'])){
 
       /* Get selected language */
-      if(isset($_POST['language']) && isset($this->languages[get_post('language')])){
+      if($this->acl_is_writeable("language") && isset($_POST['language']) && isset($this->languages[get_post('language')])){
         $this->language = get_post('language');
       }
 
@@ -777,6 +777,8 @@ class conference extends plugin
             "description"                   => _("Description"),
             "goFonPIN"                      => _("Conference PIN"),
 
+            "language"                      => _("Language"),
+  
             "goFonHomeServer"              => _("Home server"),
             "goFonConferenceOptionP"       => _("Preset PIN"),
             "goFonConferenceOptionr"       => _("Record conference"),
index d4b5468d06547035d0e97a99bbb3dc4599a6411c..901e5c080dd8846de2c15ca54414e7ee8f3dcaf0 100644 (file)
           <td>{t}Language{/t}
           </td>
           <td>
+{render acl=$languageACL}
             <select name="language" title="{t}Select language{/t}">
               {html_options options=$languages selected=$language}
             </select>
+{/render}
           </td>
         </tr>
       </table>