src/Role.php
public function isGranted($permission, Array $params = null)
    {
        if ($this->checkPermissionCurrent($permission, $params)) {
            return true;
        }

        if ($this->checkPermissionRecursive($permission, $params)) {
            return true;
        }

        return false;
    }
public function isGranted($permission, Array $params = null)
    {
        if ($this->checkPermissionCurrent($permission, $params)) {
            return true;
        }

        if ($this->checkPermissionRecursive($permission, $params)) {
            return true;
        }

        return false;
    }
public function isGranted ( $ permission , Array $ params = null ) { if ( $ this -> checkPermissionCurrent ( $ permission , $ params ) ) { return true ; } if ( $ this -> checkPermissionRecursive ( $ permission , $ params ) ) { return true ; } return false ; }
Checks if a permission exists for this role or any child roles.

@param string $permission
@param array $params
@return bool
Checks if a permission exists for this role or any child roles .