Skip to content

Commit

Permalink
Merge pull request #434 from AntonShevchuk/master
Browse files Browse the repository at this point in the history
Removed unused old method
  • Loading branch information
Anton committed Aug 2, 2017
2 parents d48d2ec + a2ae94d commit 419843e
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/Auth/AbstractRowEntity.php
Expand Up @@ -19,14 +19,6 @@
*/
abstract class AbstractRowEntity extends Row implements EntityInterface
{
/**
* Can entity login
*
* @return void
* @throws AuthException
*/
abstract public function tryLogin();

/**
* Get user privileges
*
Expand All @@ -46,6 +38,6 @@ public function hasPrivilege($module, $privilege): bool
{
$privileges = $this->getPrivileges();

return in_array("$module:$privilege", $privileges);
return in_array("$module:$privilege", $privileges, true);
}
}

0 comments on commit 419843e

Please sign in to comment.