View Issue Details

IDProjectCategoryView StatusLast Update
0005093mantisbtwebpagepublic2007-10-04 01:37
Reporterdeboutv Assigned Tovboctor  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version0.19.2 
Fixed in Version1.1.0rc1 
Summary0005093: Rights in custom menu does not work
Description

I have created a new page that reports the project hierarchy (list of all projects and all categories). In my config_inc.php file, I have added: $g_main_menu_custom_options[] = array( "hierarchy_link", REPORTER, 'hierarchy_page.php' );
I am currently logged on my default project with DEVELOPER rights and the 'hierarchy_link' is not displayed in the menu bar.
If I change REPORTER by VIEWER or ANYBODY, I can see the 'hierarchy link'.

Additional Information

In my account, my default right is VIEWER.

TagsNo tags attached.

Activities

malaussena

malaussena

2007-09-18 11:43

reporter   ~0015658

I still have the same problem with Mantis 1.0.7.

with $g_main_menu_custom_options = array ( array( "Manage project", ADMINISTRATOR, 'manage_proj_page.php' ) );

"Manage project" only appears when Project Access Level of the user is ADMINISTRATOR. But it doesn't appear if the Access Level of the user is ADMINISTRATOR for a specific project, when this project is selected.

Am I clear ? ;-)

vboctor

vboctor

2007-09-20 02:35

manager   ~0015670

In core/html_api.php: prepare_custom_menu_options()

Replace:
access_has_global_level

With:
access_has_project_level

Let me know if this fixes the problem.

malaussena

malaussena

2007-09-20 02:58

reporter   ~0015671

Thanks vboctor !

It's ok, now :-)