Skip to content

Admin can only view stats if they've published a post #1437

@gordonsumac

Description

@gordonsumac

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Attempting to view the stats for all posts fails as the dropdown to select the option to view Your stats|All Stats doesn't show if the admin/editor hasn't published any posts.

Expected Behavior

The admin/editor can view the stats for all posts without having to publish one themselves.

Steps To Reproduce

  1. Create admin user
  2. Create editor
  3. Create posts with editor account, view in browser
  4. Log in as admin, try to view stats.

Environment

PHP: 8.1
Laravel: 8
Database driver: MariaDB 10

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions