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 🙂

When MOSS is behaving differently

When working with documents in document-libraries the default behavior of MOSS 2007 is to offer whether or not you want to check-out a file. However – this can be disabled.

To check whether this feature is altogether disabled, you need to open up the central-administration, check application management\authenticationprovider\[your zone]\enable clientintegration. When this feature is disabled, checkin/checkout will not be available at all.