CommandBar

Product details

Q: Is there a way for commandbar to show routes based on user access level?

Say an admin would be able to create a form, however, a lower level user would not have that functionality and should not be shown that capability.

AndrewApr 2, 2023
Founder Team
Gus_CommandBar

Gus_CommandBar

May 15, 2024

A: Yes, this is totally possible! To do this, we have availability conditions with commands. Basically, you can use metadata or basic conditions like URL conditions to control when certain commands are available. For this example, I'd use an availability condition and then add metadata to define whether the user in an admin or not. See our docs page here on this: https://www.commandbar.com/docs/commands/availability

Share
Helpful?
Log in to join the conversation