so in my project i have a menu. I have permission to only view some pages and I have a permission so you can edit stuff.
Right now i have a permission to view it. (this works)
@can('permission', \Something\Permission::CONTACTS_VIEW)
<md-button> Contact </md-button>
@endcan
But now I want to ADD if someone ONLY have a management permission he can also view it. I was thinking something like:
@can('permission', \Something\Permission::CONTACTS_VIEW || 'permission', \Something\Permission::CONTACTS_VIEW )
<md-button> Contact </md-button>
@endcan
But this does not let me see the button.
Can someone help me with this :) ?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire