src/Reflex/Lockdown/Lockdown.php
public function is($id, $role, $all = true)
    {
        if (! $user = $this->findUserById($id)) {
            return false;
        }

        return $user->is($role, $all);
    }
public function is($id, $role, $all = true)
    {
        if (! $user = $this->findUserById($id)) {
            return false;
        }

        return $user->is($role, $all);
    }
public function is ( $ id , $ role , $ all = true ) { if ( ! $ user = $ this -> findUserById ( $ id ) ) { return false ; } return $ user -> is ( $ role , $ all ) ; }
Is the user part of a role?
@param  integer $id
@param  string  $role
@param  boolean $all
@return boolean
Is the user part of a role?