Dependency Graph

Dependency Graph
related to related to child of child of duplicate of duplicate of

View Issue Details

IDProjectCategoryView StatusLast Update
0012251mantisbtotherpublic2011-08-05 02:20
Reporterklkl Assigned Todhx  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionduplicate 
Product Versiongit trunk 
Summary0012251: User without roadmap update privilege cannot assign or update bugs at all
Description

BugData::__set() requires privileges for updating target_version, even if user didn't change value of target_version.


case 'target_version':
if ( !$this->loading ) {

Only set target_version if user has access to do so

                if( !access_has_project_level( config_get( 'roadmap_update_threshold' ) ) ) {
                    trigger_error( ERROR_ACCESS_DENIED, ERROR );
                }
            }

Additional Information

I suggest replacing trigger_error() with return here (just in case code elsewhere relies on this check) and trigger permission errors on pages that update the bug, like it's done with other permissions.

TagsNo tags attached.

Relationships

duplicate of 0012215 closeddregad Write to target_version field may fail due to unhandled access check 

Activities

dhx

dhx

2010-08-12 09:13

reporter   ~0026296

Thanks for the report. I agree with your suggestion to remove the access check from bug_api.php (it doesn't belong there). Issue 0012215 is already tracking this matter so please continue following it there instead.