Anonymous user can change bug status

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
rwhitney
Posts: 7
Joined: 10 Jan 2007, 07:36

Anonymous user can change bug status

Post by rwhitney »

Currently in our setup the anonymous account can change the status of the bugs. Uh, how do we go about turning this option off?
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

It seems that your anonymous user has a higher access level than they should. At the moment if a user has access to update a bug, then this user has access to change status. You should consider giving anonymous user reporter access rather than update access.
Migrate your MantisBT to the MantisHub Cloud
rwhitney
Posts: 7
Joined: 10 Jan 2007, 07:36

Anonymous user has a viewer level status

Post by rwhitney »

Its not set to update status, its set to viewer. Our anonymous users are unable to report bugs, just view them.

any other ideas?
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

What are the steps that the anonymous user can use to change the issue status?
Migrate your MantisBT to the MantisHub Cloud
rwhitney
Posts: 7
Joined: 10 Jan 2007, 07:36

Post by rwhitney »

If the user merely views the bug then there is a single option for them to change the status.

Image
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

Please report this in the bug tracker. I will check it out.
Migrate your MantisBT to the MantisHub Cloud
rwhitney
Posts: 7
Joined: 10 Jan 2007, 07:36

Post by rwhitney »

jong
Posts: 3
Joined: 20 Apr 2007, 10:51

Post by jong »

I also have this problem with anonymous users. I get an accessed denied error when I try to view the bug you have posted (7771). Is there any news on a fix for this issue?
jong
Posts: 3
Joined: 20 Apr 2007, 10:51

Post by jong »

I am still having this problem. Should I file another bug report?
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

I've posted some questions on the issue. Reporting another bug won't help. I am just wondering why not everyone is hitting this!
Migrate your MantisBT to the MantisHub Cloud
jong
Posts: 3
Joined: 20 Apr 2007, 10:51

Post by jong »

Thanks. It's awkward as the issue seems to be marked as private so I cannot tell if it is the same issue.
visiblesoul
Posts: 1
Joined: 28 Jul 2007, 23:08
Contact:

Post by visiblesoul »

OK, so this is an old topic and I haven't found the solution for this issue for version 1.0.8 so here's a quick and ugly hack that seems to work for me...

First, find the user ID for your anonymous user account you set up. In my installation the "anonymous" user's user ID is "3". An easy way to find this is to navigate to Manage > Manage Users and hover over the "anonymous" username in the list of users. You will see a URL like this in your browser status bar...
You can see that the user_id is 3 for this particular user.

FIND in core/html_api.php (function html_button_bug_change_status):

Code: Select all

echo "<form method=\"post\" action=\"bug_change_status_page.php\">";
ADD ABOVE:

Code: Select all

if (auth_get_current_user_id() != 3) { // anonymous status button hack
Be sure to replace the "3" in my example code with the actual user ID of your anonymous user.

FIND:

Code: Select all

echo "</form>\n";
ADD BELOW:

Code: Select all

} // anonymous status button hack

FIND in bug_change_status_page.php:

Code: Select all

		) {
		access_denied();
ADD ABOVE:

Code: Select all

			|| auth_get_current_user_id() == 3 // anonymous status button hack
Be sure to replace the "3" in my example code with the actual user ID of your anonymous user.

Hope that helps someone.

-=DKC=-
Post Reply