Personal tools
« January 2009 »
Su Mo Tu We Th Fr Sa
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Recent entries
The next level of FireFox eiben 2009-01-02
Pretty printing for the web eiben 2008-12-12
Modelling in time eiben 2008-12-05
Pimpin' the Pimp eiben 2008-11-24
YSlow? eiben 2008-11-24
 
Document Actions

Updating Mantis Categories


I just stumbled across this error: I have a project in Mantis with a project-manager assigned. While this manager can add new categories alright, whenever he tries to update an existing category he gets an ACCESS_DENIED error (see issue 9728).

I figured, that in the manage_proj_cat_edit_page.php the project_id field is missing, so the:

   access_ensure_project_level( config_get( 'manage_project_threshold' ), $f_project_id );

always tests for the permission on ALL_PROJECTS (because of:

   $f_project_id = gpc_get_int( 'project_id', ALL_PROJECTS );

However, by adding:

   <input type="hidden" name="project_id" value="<?php echo $f_project_id ?>" />

to the manage_proj_cat_edit_page.php the problem could be resolved :)

Mantis Update Category Patch Mantis Update Category Patch
Size 1 kB - File type text/x-patch
Keywords: Mantis
Category(s)
Programming
You are here: Home Mein Blog Updating Mantis Categories

Powered by Plone CMS, the Open Source Content Management System

skin based on PYBOOM

This site conforms to the following standards: