Skip to content

Commit

Permalink
Removed unused old method
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Shevchuk authored and Anton Shevchuk committed Aug 2, 2017
1 parent d48d2ec commit a2ae94d
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/Auth/AbstractRowEntity.php
Original file line number Diff line number Diff line change
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 a2ae94d

Please sign in to comment.