working state
This commit is contained in:
@@ -126,6 +126,7 @@ func (self *ServersAuthorizationDbHandler) SetPermissions(ctx context.Context, u
|
||||
|
||||
func (self *ServersAuthorizationDbHandler) GetPermissions(ctx context.Context, username string, serverId string) (models.Permission, error) {
|
||||
var serverPermissions ServerPermissions
|
||||
|
||||
err := self.collection.FindOne(
|
||||
ctx,
|
||||
bson.M{
|
||||
|
@@ -26,7 +26,7 @@ type UserPassAuthenticationDbHandler struct {
|
||||
}
|
||||
|
||||
func (self *UserPassAuthenticationDbHandler) ListUsers(ctx context.Context) ([]models.User, error) {
|
||||
cursor, err := self.collection.Find(ctx, nil)
|
||||
cursor, err := self.collection.Find(ctx, bson.M{})
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Reference in New Issue
Block a user