public function hasPermission($permission)
    {   
        $permission = Permission::whereName($permission)->first();
        if (is_null($permission)){
            return false;
        }
        return $this->hasRole($permission->roles);
    }