Skip to content

Commit

Permalink
Permissions checks for timetracking.
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@5184 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Daryn Warriner committed Apr 21, 2008
1 parent aa2d221 commit bb78e8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions billing_page.php
Expand Up @@ -25,6 +25,7 @@
require_once( 'core.php' );

$t_core_path = config_get( 'core_path' );
access_ensure_global_level( config_get( 'time_tracking_reporting_threshold' ) );
?>
<?php
/*
Expand Down
2 changes: 1 addition & 1 deletion core/html_api.php
Expand Up @@ -656,7 +656,7 @@ function print_menu() {
# Add custom options
$t_custom_options = prepare_custom_menu_options( 'main_menu_custom_options' );
$t_menu_options = array_merge( $t_menu_options, $t_custom_options );
if ( config_get('time_tracking_enabled') && config_get('time_tracking_with_billing') )
if ( config_get('time_tracking_enabled') && config_get('time_tracking_with_billing') && access_has_global_level( config_get( 'time_tracking_reporting_threshold' ) ) )
$t_menu_options[] = '<a href="' . helper_mantis_url( 'billing_page.php">' ) . lang_get( 'time_tracking_billing_link' ) . '</a>';

# Logout (no if anonymously logged in)
Expand Down

0 comments on commit bb78e8a

Please sign in to comment.