How to disable (grey out) a button

Hi,
In Corteza, is there a way to disable (grey out) a button in an automation block when the current user doesn’t have the permissions to perform the action? I know it’s possible to use block visibility to hide them, but that leaves an empty space, which isn’t very aesthetic.

1 Like

If you’re using automation scripts, you can do this.

For workflows, as is, you can only prevent execution by setting the “can execute workflows” permission to deny but it won’t gray the button out.

@jfortun we probably wanna do this yea?

Sure, if permissions are provided for each button.
Otherwise adding a roles visibility input for each button would also solve this.

1 Like

That would be extremely useful to have. It would greatly improve flexibility and control over the interface.

1 Like