Après quelques recherches j&
#039;ai trouvé le moyen de ne rendre l&
#039;aspect "Facturation" (= "Billing" in english) accessible qu&
#039;à l&
#039;administrateur ou à tout autre droit sans pour autant que l&
#039;accès à la facturation soit donné en cascade à tous les droits supérieurs :
#################
# Custom Menus
#################
# Add custom options to the main menu. For example:
# $g_main_menu_custom_options = array( array( "My Link", MANAGER, 'my_link.php' ),
# array( "My Link2", ADMINISTRATOR, 'my_link2.php' ) );
# Note that if the caption is found in custom_strings_inc.php, then it will be replaced by the
# translated string. Options will only be added to the menu if the current logged in user has
# the appropriate access level.
$g_main_menu_custom_options = array (array("Facturation", ADMINISTRATOR, 'billing_page.php');
Malheureusement, il me reste encore un problème, je voudrais que
$g_time_tracking_view_threshold et
$g_time_tracking_edit_threshold soit uniquement accessible aux développeurs et pas aux autres, mais ça n&
#039;est pas possible, car on donne le droit minimum pour y avoir accès et non pas le droit pour lequel on peut y avoir accès ... suis-je claire ?
config_inc.php :
#####################
# Time tracking
#####################
# Turn on Time Tracking accounting
$g_time_tracking_enabled = ON;
# A billing sums
$g_time_tracking_with_billing = OFF;
# Stop watch to build time tracking field
$g_time_tracking_stopwatch = OFF;
# access level required to view time tracking information
$g_time_tracking_view_threshold = DEVELOPER;
# access level required to add/edit time tracking information
# DOIT FORCEMENT ETRE EGALE OU SUPERIEUR AU NIVEAU DE DROIT DONNER PRECEDEMMENT "$g_time_tracking_view_threshold"
# ALORS QUE MOI JE VOUDRAIS SEULEMENT QUE LE "DEVELOPER" VOIT ET PUISSE EDITER LE SUIVI DES TEMPS.
$g_time_tracking_edit_threshold = DEVELOPER;
# access level required to run reports
$g_time_tracking_reporting_threshold = ADMINISTRATOR;
Encore une idée ?
Gôm
Mantis : 1.0.6 - 1.1.2 (avec Plugins)
Apache : 2.0.63
PHP : 4.4.9
MySQL : 5.0.51b
OS : Windows 2003 Server R2 SP2
Environnement : WAMP Server 2.0c
Edited 1 time(s). Last edit at 06/16/2008 12:21PM by gom.