Hi together,
is there a way to display / hide a widget based on permission? E.g. someone who is not allowed to see / edit form responses sees the form widgets. Or is there something like a can attribute?
// config/statamic/cp.php
//...
'widgets' => [
[
'type' => 'form',
'form' => 'contact', // name of your form
'fields' => ['fullname'],
'width' => 50,
'limit' => 10,
'can' => 'view contact form submissions' // missing?
]
]
//...
Or is there another way to solve it for existing and custom widgets?