From 19750013d48d81cf8bce643f06ecf965df406deb Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 19 Sep 2008 12:11:01 +0000 Subject: [PATCH] Updated gotoLogView, to be able to set ACLs. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12524 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../goto/addons/goto/class_gotoLogView.inc | 21 +++++++++++++++- gosa-plugins/goto/addons/goto/log_view.tpl | 25 +++++++++++-------- 2 files changed, 35 insertions(+), 11 deletions(-) diff --git a/gosa-plugins/goto/addons/goto/class_gotoLogView.inc b/gosa-plugins/goto/addons/goto/class_gotoLogView.inc index 4193a586c..40c2db008 100644 --- a/gosa-plugins/goto/addons/goto/class_gotoLogView.inc +++ b/gosa-plugins/goto/addons/goto/class_gotoLogView.inc @@ -1,6 +1,6 @@ selected_date = key($res[$this->mac]); $this->logs = $res; } + } @@ -161,6 +162,7 @@ class goto_log_view extends plugin $divlist->AddEntry($entry); } + $smarty->assign("ACL",preg_match("/r/",$this->getacl(""))); $smarty->assign("divlist",$divlist->DrawList()); return($smarty->fetch(get_template_path('log_view.tpl', TRUE,dirname(__FILE__)))); } @@ -191,6 +193,23 @@ class goto_log_view extends plugin $this->sort_by = $_GET['sort_by']; } } + + + /* Return plugin informations for acl handling */ + static function plInfo() + { + return (array( + "plShortName" => _("Log view"), + "plDescription" => _("Goto log view"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 30, + "plSection" => array("administration"), + "plCategory" => array("workstation"), + + "plProvidedAcls"=> array() + )); + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> diff --git a/gosa-plugins/goto/addons/goto/log_view.tpl b/gosa-plugins/goto/addons/goto/log_view.tpl index 5542cdf2a..433214f22 100644 --- a/gosa-plugins/goto/addons/goto/log_view.tpl +++ b/gosa-plugins/goto/addons/goto/log_view.tpl @@ -1,16 +1,21 @@ -{if $logs_available} +{if !$ACL} -

{t}Available logs{/t}

+

{msgPool type=permView}

-
{$divlist}
-
-

-

{t}Selected log{/t}: {$selected_log}

-
- {$log_file} -
{else} -

{t}No logs for this host available!{/t}

+ {if $logs_available} +

{t}Available logs{/t}

+ +
{$divlist}
+
+

+

{t}Selected log{/t}: {$selected_log}

+
+ {$log_file} +
+ {else} +

{t}No logs for this host available!{/t}

+ {/if} {/if} {if $standalone} -- 2.30.2