Skip to content

Create button remains visible when user has no creation permissions #40731

@DeveloperWide

Description

@DeveloperWide

Description

The Navbar "Create New" button remains visible even when a user does not have permission to create any resources.

The button is responsible for actions such as:

  • Create channel
  • Create team
  • Create discussion
  • Create direct message

When all of these permissions are unavailable, the button is still rendered in a disabled state.

Current behavior

Users see a disabled create button that cannot perform any action.

Image

Expected behavior

The create button should not be displayed when no creation actions are available.

Image

Why

Showing a non-functional action may create confusion and adds unnecessary UI clutter for restricted users.

Additional information

The menu sections array is empty when no creation actions are available, which could be used to determine whether the button should be rendered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions