github JosephSilber/bouncer v0.0.26

latest releases: v1.0.2, v1.0.1, v1.0.0...
pre-release8 years ago

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

Don't miss a new bouncer release

NewReleases is sending notifications on new releases.