Opened 11 years ago
Closed 11 years ago
#26574 closed defect (bug) (fixed)
Dashboard shows inaccessible links for Authors and Contributors
Reported by: | johnbillion | Owned by: | johnbillion |
---|---|---|---|
Milestone: | 3.8.1 | Priority: | low |
Severity: | minor | Version: | 3.8 |
Component: | Administration | Keywords: | has-patch commit fixed-major |
Focuses: | Cc: |
Description
The "At a Glance" dashboard widget show "X Posts", "X Pages" and "X Comments" with links to the corresponding listing screens, but there are no capability checks in place when the links are output. This means Author level users see a link to the Pages screen that they don't have access to, and Contributors see a link to the Posts, Comments and Pages screens, none of which they have access to.
In 3.7 and earlier, if the user didn't have the capability to edit the object then the text was shown without a link.
Attachments (1)
Change History (15)
#7
@
11 years ago
What are we thinking here? Unlinked text (as previously) or just hide the item altogether?
#8
follow-up:
↓ 9
@
11 years ago
Hide them I think. Not a lot of value in displaying the count for something the user can't access.
#9
in reply to:
↑ 8
@
11 years ago
- Owner set to johnbillion
- Status changed from new to assigned
Replying to johnbillion:
Hide them I think. Not a lot of value in displaying the count for something the user can't access.
While there's nothing wrong with hiding them, I wonder if there will be much for low-level users to be able to get a "glance" of.
At the same time, one could argue there's not a whole lot of value for displaying many of these counts to anyone, which is partially why there are less numbers just randomly tossed onto the dashboard now.
Let's remove them for now (and for 3.8.1), to remove the broken links. But worth future consideration.
johnbillion, up for running with this?
Note that the CSS for the icons on these links relies on there being an
a
tag present. That'll need changing too.