Skip to content

"Stock" item in toolbar/menus not visible when no permissions for "Stock Items" #11256

@plaes

Description

@plaes

Please verify that this bug has NOT been raised before.

  • I checked and didn't find a similar issue

Describe the bug*

"Stock" toolbar is not visible with following group permissions:
Image

Steps to Reproduce

  1. Add a group with only view permissions for "Stock Locations"
  2. Make sure that the "View" and all other permissions for "Stock Items" is dropped.
  3. Observe that "Stock" is missing from main toolbar (and other locations) for users of this group

One can still manually browse the "{SITE}/web/stock/location/index/sublocations" URL, so in backend things seem to be ok.

Expected behaviour

"Stock" would be still visible.

Deployment Method

Docker

Version Information

1.1.11.

Try to reproduce on the demo site

I did not try to reproduce

Is the bug reproducible on the demo site?

Not reproducible

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    User InterfaceRelated to the frontend / User InterfacebugIdentifies a bug which needs to be addressed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions