diff --git a/src/Builder.php b/src/Builder.php index 87fa8c6..c9f700d 100755 --- a/src/Builder.php +++ b/src/Builder.php @@ -475,10 +475,10 @@ public function guard() { if (class_exists('Caffeinated\Shinobi\Shinobi')) { $this->filter(function ($item) { - if (! $item->data('can') and ! $item->data('canAtLeast')) { + if (! $item->data('can') and ! $item->data('canatleast')) { return true; - } elseif ($item->data('canAtLeast')) { - return \Shinobi::canAtLeast($item->data('canAtLeast')); + } elseif ($item->data('canatleast')) { + return \Shinobi::canAtLeast($item->data('canatleast')); } else { return \Shinobi::can($item->data('can')); } diff --git a/src/Item.php b/src/Item.php index 103df0e..783442e 100755 --- a/src/Item.php +++ b/src/Item.php @@ -378,7 +378,7 @@ public function can($permissions) public function canAtLeast($permissions) { - return $this->data('canAtLeast', $permissions); + return $this->data('canatleast', $permissions); } /**