Always show "My Sites", sometimes hide "Site Name" menu
|Reported by:||duck_||Owned by:||duck_|
Non-super-admin who is member of only one site visits a site they're not associated with.
- They see the "Site Name" menu and it's linked to the dashboard of the current site which they don't have access to
- No "My Sites" menu for quick access to dashboard of the user's site
Point 1. can be fixed by hiding the "Site Name" site when the current blog ID isn't in the user's blogs array and they're not a super-admin.
Point 2. proposed fixed is to always show the "My Sites" menu.
Also stopped the removal of the current site from "My Sites" to fix issue of empty "My Sites" drop down. This could probably also be fixed by some more complicated logic earlier in the function, but the 'now it's here, now it isn't' nature seems a little strange to me.
Change History (14)
comment:10 duck_ — 2 years ago
- Owner set to duck_
- Resolution set to fixed
- Status changed from new to closed