X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fbug_report%2Fsetup.php;h=9c1d3ddec2a0dfea6161e19d69743bc93decfe04;hb=7af343f176b34839e17d03e5f2ea9dc45b56f6d2;hp=0fa28f2262fd3169d9e4fce63474a91ba4f1db27;hpb=e1df91745343daf8ea72b2f0da982a41e6265fc3;p=squirrelmail.git diff --git a/plugins/bug_report/setup.php b/plugins/bug_report/setup.php index 0fa28f22..9c1d3dde 100644 --- a/plugins/bug_report/setup.php +++ b/plugins/bug_report/setup.php @@ -1,13 +1,9 @@ 'bug_report_visible', - 'caption' => _("Show button in toolbar"), - 'type' => SMOPT_TYPE_BOOLEAN, - 'refresh' => SMOPT_REFRESH_ALL, - 'initial_value' => false - ); - $optpage_data['vals']['bug_report'] = $optionValues; + include_once(SM_PATH.'plugins/bug_report/functions.php'); + if (bug_report_check_user()) { + global $optpage_data; + $optpage_data['grps']['bug_report'] = _("Bug Reports"); + $optionValues = array(); + // FIXME: option needs refresh in SMOPT_REFRESH_RIGHT + // (menulink is processed before options are saved/loaded) + $optionValues[] = array( + 'name' => 'bug_report_visible', + 'caption' => _("Show button in toolbar"), + 'type' => SMOPT_TYPE_BOOLEAN, + 'refresh' => SMOPT_REFRESH_ALL, + 'initial_value' => false + ); + $optpage_data['vals']['bug_report'] = $optionValues; + } } - -?> \ No newline at end of file