Skip to content

Commit

Permalink
fix double declare error
Browse files Browse the repository at this point in the history
  • Loading branch information
keevitaja committed Feb 20, 2014
1 parent 91a3b09 commit 7586ff1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Keevitaja/Keeper/GuardExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

use Illuminate\Auth\Guard;
use Keeper;
use Keeper as K;

class GuardExtension extends Guard {

Expand All @@ -23,7 +23,7 @@ public function hasRole($roleName)
{
if ( ! $this->check()) return false;

return Keeper::hasRole($this->user()->getAuthIdentifier(), $roleName);
return K::hasRole($this->user()->getAuthIdentifier(), $roleName);
}

/**
Expand All @@ -38,6 +38,6 @@ public function hasPermission($permissionName)
{
if ( ! $this->check()) return false;

return Keeper::hasPermission($this->user()->getAuthIdentifier(), $permissionName);
return K::hasPermission($this->user()->getAuthIdentifier(), $permissionName);
}
}

0 comments on commit 7586ff1

Please sign in to comment.