Just spend a ton of time searching for this "bug".
My blade file contained this:
@ability('', 'permission1, permission2')
<div>
html goes here
</div>
@endability
If my user has the permission1 permission the block is rendered correctly but if my user only has the permission2 permission the block is not rendered.
It turns out the mistake I made was to put a space inside the permission list after the comma.
@ability('', 'permission1,<space>permission2')
should be
@ability('', 'permission1,permission2')
I know this is not technically an issue but it would be nice to trim the comma separated list to prevent these kind of mistakes. I'm guessing i'm not the first to encounter this problem.
First of: Great plugin!
Issue
Just spend a ton of time searching for this "bug".
My blade file contained this:
If my user has the
permission1
permission the block is rendered correctly but if my user only has thepermission2
permission the block is not rendered.It turns out the mistake I made was to put a space inside the permission list after the comma.
should be
I know this is not technically an issue but it would be nice to trim the comma separated list to prevent these kind of mistakes. I'm guessing i'm not the first to encounter this problem.