Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics

Dashboard
Notifications
Mark all as read
Q&A

Welcome to Codidact Meta!

Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

What is the "tools" button for? Is it meant to do anything?

+3
−0

I was just looking at one answer of mine, and I noticed a "tools" button with a spanner next to it. When I tried clicking it, however, nothing seems to happen. I've looked through the abilities page, and found only one thing that may be the answer:

See certain pending flags, lock and unlock posts temporarily, and vote to delete and undelete posts

Perhaps since my answer has no pending flags, the button does nothing. But in any case, why would a post author be allowed to handle flags on their own post? Post owners can easily just decline such flags, and they are biased when looking at their own post.

Here is the behavior in a gif:

behavior of tools button

For now, I've marked this as support, but if it's a bug I'll edit it.

Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

3 comments

tl;dr, even though you don't have the permission to use the tools, the button is still displayed Moshi‭ about 1 month ago

Hmm. You should not see the Tools menu if you don't have any of the relevant abilities (i.e. if you can't do anything on that menu). I saw a change go in in this part of the code today (not live yet), so possibly this has already been noticed and fixed -- will check. Monica Cellio‭ about 1 month ago

1 answer

+4
−0

Thanks for the report. We're already aware of the bug and I've already written a fix; it'll be deployed soon.

What happened? We have two functions to check for your abilities around a post check_your_privilege and check_your_post_privilege. The latter will also allow you to do something, if you are the author of the post on which it is supposed to happen.

When I updated the post button bar for the Abilities update, I thought it'd be a good idea to use just one if-branch for the "Delete", "Tools" and "Pending Flags" actions. However, I forgot that while "Delete" should also be available to the author regardless of Abilities, the others shouldn't.

This has been fixed, pending deploy. No Codidactyls were harmed.

Why does this post require moderator attention?
You might want to add some details to your flag.

1 comment

Ahh, ok. That makes more sense. 10 Rep‭ about 1 month ago

Sign up to answer this question »