diff --git a/resources/inc/class.resources_hooks.inc.php b/resources/inc/class.resources_hooks.inc.php index 847046e785..60131e4eca 100644 --- a/resources/inc/class.resources_hooks.inc.php +++ b/resources/inc/class.resources_hooks.inc.php @@ -18,6 +18,8 @@ class resources_hooks { function admin_prefs_sidebox($args) { + $this->acl =& CreateObject('resources.bo_acl'); + $appname = 'resources'; $location = is_array($args) ? $args['location'] : $args; @@ -30,13 +32,17 @@ class resources_hooks 'link' => $GLOBALS['egw']->link('/index.php',array('menuaction' => 'resources.ui_resources.index' )), // 'icon' => ); - $file[] = array( + + if($this->acl->get_cats(EGW_ACL_ADD)) + { + $file[] = array( 'text' => ''.lang('add resource').'', 'no_lang' => true, 'link' => false - ); + ); + } // $file[] = array( // 'text' => lang('planer'), // 'no_lang' => true,