Skip to content

v0.0.26

Pre-release
Pre-release
Compare
Choose a tag to compare
@JosephSilber JosephSilber released this 08 Dec 14:55
· 528 commits to master since this release

Added new notA and notAn methods, so you can now check for the absence of roles:

Bouncer::is($user)->notA('moderator');
Bouncer::is($user)->notAn('editor');

Also added the isNot method to the user trait:

$user->isNot('admin');

Fixes:

  • Model names weren't being passed through properly in the user trait's allow and disallow methods. dcfd741
  • Model abilities were sometimes being conflated. fe480de