src/Searsaw/Drawbridge/models/BridgeUser.php
public function hasRole($role)
    {
        $roles = $this->roles;
        foreach ($roles as $role_obj)
            if ($this->checkRole($role, $role_obj))
                return true;

        return false;
    }
public function hasRole($role)
    {
        $roles = $this->roles;
        foreach ($roles as $role_obj)
            if ($this->checkRole($role, $role_obj))
                return true;

        return false;
    }
public function hasRole ( $ role ) { $ roles = $ this -> roles ; foreach ( $ roles as $ role_obj ) if ( $ this -> checkRole ( $ role , $ role_obj ) ) return true ; return false ; }
Checks to see if a user has a certain role

@param $role string|integer|\Searsaw\Drawbridge\Models\BridgeRole The role to check

@return bool
Checks to see if a user has a certain role