Bitbucket Server returns a 401 ("You are not permitted to view this page" error) on the dashboard when a user has recent pushes to repositories they no longer have access to.
- Create a user (not a system admin) and give it permissions to a particular repository (or project)
- Push to the repository as that user
- Revoke permissions for the repository (or project) for this user
- View the dashboard page
Dashboard page loads correctly, with the recent pushes to the repository that the user no longer has access to filtered out.
The dashboard page does not load correctly (a 401 error page is returned). Note that if you remain on the dashboard while permissions are revoked, the XHR request to pull request suggestions will throw a 401, but the page will still work.