summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a749a4b)
raw | patch | inline | side by side (parent: a749a4b)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 19 Sep 2008 12:28:01 +0000 (12:28 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 19 Sep 2008 12:28:01 +0000 (12:28 +0000) |
-Added ACL checks.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12527 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12527 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/systems/goto/class_terminalInfo.inc | patch | blob | history | |
gosa-plugins/goto/admin/systems/goto/info.tpl | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/systems/goto/class_terminalInfo.inc b/gosa-plugins/goto/admin/systems/goto/class_terminalInfo.inc
index 071c99bf6494f4a0a41536fdf23818535ef4299d..d92a958eb2651ef802d3ab8ed2e3fa02fb4b1511 100644 (file)
$smarty= get_smarty();
$display= "";
- if(!is_callable("snmpget")){
+ $smarty->assign("ACL",TRUE);
+ if(!preg_match("/r/",$this->getacl(""))){
+ $smarty->assign("ACL",FALSE);
+ }elseif(!is_callable("snmpget")){
msg_dialog::display(_("Configuration error"), msgPool::missingext("snmp"), ERROR_DIALOG);
$smarty->assign("load", progressbar(0,100,15,true));
{
}
+
+ /* Return plugin informations for acl handling */
+ static function plInfo()
+ {
+ return (array(
+ "plShortName" => _("System info"),
+ "plDescription" => _("System informations"),
+ "plSelfModify" => FALSE,
+ "plDepends" => array(),
+ "plPriority" => 33,
+ "plSection" => array("administration"),
+ "plCategory" => array("workstation","server","terminal"),
+ "plProvidedAcls"=> array()
+ ));
+ }
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
diff --git a/gosa-plugins/goto/admin/systems/goto/info.tpl b/gosa-plugins/goto/admin/systems/goto/info.tpl
index 02260dbb82f609a3bd7e52eb7800f737129dd75b..f086d2e0417bdd197cf264d360a67d013bcfb45a 100644 (file)
+
+{if !$ACL}
+ <h2>{msgPool type=permVietype=permVieww}</h2>
+{else}
+
<h2><img class="center" alt="" align="middle" src="images/info_small.png"> {t}System information{/t}</h2>
<table summary="" style="width:100%;">
<tr>
</tr>
</table>
{/if}
+{/if}