cartalyst / sentinel

A framework agnostic authentication & authorization system.
BSD 3-Clause "New" or "Revised" License
1.52k stars 240 forks source link

make personal permissions take priority over pattern matching #488

Closed 8633brown closed 5 years ago

8633brown commented 5 years ago

the string typecast has been removed as we now have typehinting on the parameters.

I think it would make more sense to just return $prepared[$permission] however we cannot be certain of this variable as far as i'm aware so i think evaluating to true this is the better alternative at the moment.

Closes #244

brunogaspar commented 5 years ago

Looks good :)

Any remarks @suwardany ?