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.
Link to moderator help pages is presented to non-moderators
In the Abilities page for the Moderator ability, it says:
Moderators also have access to special moderator-specific help pages.
Since only moderators have access to these, the link goes to a 404 error page when clicked on by a user who is not a moderator. Is it intentional to show this link to non-moderators?
Would it be better to not include the link unless the user is a moderator, just using plain text instead?
2 answers
You are accessing this answer with a direct link, so it's being shown above all other answers regardless of its score. You can return to the normal view.
Here's a different take. Let everyone see the moderator help pages. Having ordinary users understand the view of moderators and what they can and can't do doesn't sound like a bad thing, and fosters a feeling of openess.
1 comment thread
This feels like it should be a simple matter of an ability check, like we do in many other places when deciding what to show to a specific user. However, this particular link is coming from an ability description that is seeded in the database itself -- our code simply renders the HTML it's given, and that HTML is just HTML, not context-aware code.
We could try to do something fancier to intercept the link, but that would mean writing some specific, fragile code that might fail for some other deployment if that seeded text were to change in the future. All things considered, an HTTP error when trying to access content the text labeled as restricted does not seem terrible, even if in an ideal world we would have caught it.
I'm going to tag this status-declined
but it's more status-live-with-it-unfortunately
.
1 comment thread