This commit is contained in:
Shoghi Cervantes 2013-11-25 11:02:33 +01:00
parent 249e83db91
commit 0ac81968b7
2 changed files with 7 additions and 12 deletions

View file

@ -83,8 +83,7 @@ interface Permission{
public function isGranted($permission);
}
class DefaultPermission implements Permission//TODO: Remove this in the future for a better system than a default permission.
{
class DefaultPermission implements Permission{//TODO: Remove this in the future for a better system than a default permission.
/**
* @var integer
*/
@ -95,14 +94,10 @@ class DefaultPermission implements Permission//TODO: Remove this in the future f
*
* @return boolean
*/
public function isGranted($permissionToCheckGranted)
{
if($this->getPermissionLevel() >= $permissionToCheckGranted->getPermissionLevel())
{
public function isGranted($permissionToCheckGranted){
if($this->getPermissionLevel() >= $permissionToCheckGranted->getPermissionLevel()){
return true;
}
else
{
}else{
return false;
}
}
@ -110,8 +105,7 @@ class DefaultPermission implements Permission//TODO: Remove this in the future f
/**
* @return integer
*/
public function getPermissionLevel()
{
public function getPermissionLevel(){
return $this->permissionLevel;
}
}