Access Denied error - mantis

General discussion of Mantis.

Moderators: Contributor, Developer

Access Denied error - mantis

Postby rameshchand » Dec 07, 2017 2:28 am

Hi,

I have migrated mantis from old version to latest but We are getting an issue with Mantis Latest When we try to resolve issues from developer account, system is always giving error alert on screen that "Access Denied"


Thanks
rameshchand
 
Posts: 6
Joined: Sep 21, 2017 7:05 am

Re: Access Denied error - mantis

Postby rameshchand » Dec 13, 2017 12:42 am

Hi Team,

Please advise me on this why this is happening .?


Thanks
rameshchand
 
Posts: 6
Joined: Sep 21, 2017 7:05 am

Re: Access Denied error - mantis

Postby atrol » Dec 13, 2017 2:27 am

rameshchand wrote:with Mantis Latest
Does it mean 2.9.0?
Please use Search before posting and read the Manual
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
Site Admin
 
Posts: 6714
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Access Denied error - mantis

Postby rameshchand » Dec 13, 2017 4:59 am

Yes its 2.9.0 where i am getting issue.
rameshchand
 
Posts: 6
Joined: Sep 21, 2017 7:05 am

Re: Access Denied error - mantis

Postby atrol » Dec 13, 2017 5:15 am

You did not provide that much details about your problem (e.g. your various threshold setting in config_inc.php and the workflow settings on manage pages)

This one might be your issue https://www.mantisbt.org/bugs/view.php?id=23719
If so, it should be fixed in 2.9.1
Please use Search before posting and read the Manual
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
Site Admin
 
Posts: 6714
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Access Denied error - mantis

Postby rameshchand » Dec 14, 2017 12:15 am

Thanks you very much !

It works for me and my issue resolved.

Thanks
rameshchand
 
Posts: 6
Joined: Sep 21, 2017 7:05 am

Re: Access Denied error - mantis

Postby servicebasketusa » Dec 15, 2017 5:04 am

I have also some issue with access. Have you getting solution of this problem?
servicebasketusa
 
Posts: 1
Joined: Dec 15, 2017 4:19 am
Location: USA

Re: Access Denied error - mantis

Postby rameshchand » Dec 15, 2017 8:49 am

Yes this is resolved from me you can try ::

https://github.com/mantisbt/mantisbt/pu ... 4016125e2a
38

You have to replace the code in bug_update.php

Under the line : ..............if ( !$t_reporter_reopening && !$t_reporter_closing ) {

=============================================================================================
+ switch( $f_update_type ) {
+ case BUG_UPDATE_TYPE_ASSIGN:
+ access_ensure_bug_level( 'update_bug_assign_threshold', $f_bug_id );
+ $t_check_readonly = true;
+ break;
+ case BUG_UPDATE_TYPE_CLOSE:
+ case BUG_UPDATE_TYPE_REOPEN:
+ access_ensure_bug_level( 'update_bug_status_threshold', $f_bug_id );
+ $t_check_readonly = false;
+ break;
+ case BUG_UPDATE_TYPE_CHANGE_STATUS:
+ access_ensure_bug_level( 'update_bug_status_threshold', $f_bug_id );
+ $t_check_readonly = true;
+ break;
+ case BUG_UPDATE_TYPE_NORMAL:
+ default:
+ access_ensure_bug_level( 'update_bug_threshold', $f_bug_id );
+ $t_check_readonly = true;
+ break;
+ }
+
+ if( $t_check_readonly ) {
+ # Check if the bug is in a read-only state and whether the current user has
+ # permission to update read-only bugs.
+ if( bug_is_readonly( $f_bug_id ) ) {
+ error_parameters( $f_bug_id );
+ trigger_error( ERROR_BUG_READ_ONLY_ACTION_DENIED, ERROR );
+ }
}
}
=============================================================================================

Thanks
rameshchand
 
Posts: 6
Joined: Sep 21, 2017 7:05 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 5 guests