Skip to content

Commit

Permalink
Revert "re #186: Add UserInterface::hasRole and hasRoles"
Browse files Browse the repository at this point in the history
This reverts commit b250e58.
  • Loading branch information
ercanozkaya committed Dec 19, 2014
1 parent 18c5ceb commit 6d1400c
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions code/libraries/koowa/libraries/user/interface.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,6 @@ public function getName();
*/
public function getRoles();

/**
* Checks if the user has a role.
*
* @param mixed|array $roles A role name or an array containing role identifiers.
* @return bool True if the user has at least one of the provided roles, false otherwise.
*/
public function hasRole($roles);

/**
* Checks if the user has a set of roles.
*
* @param array $roles An array containing role identifiers.
* @return bool True if the user has all of the provided roles, false otherwise.
*/
public function hasRoles($roles);

/**
* Returns the groups the user is part of
*
Expand Down

0 comments on commit 6d1400c

Please sign in to comment.