Skip to content

Commit

Permalink
don't return main user to front, because it can't be edited
Browse files Browse the repository at this point in the history
  • Loading branch information
LbP22 committed Dec 28, 2023
1 parent 522f1fc commit 65566d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions application/backend/app/userdb/userdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package userdb
import (
"encoding/json"
"errors"
"os"
"strings"

"github.com/devforth/OnLogs/app/vars"
Expand All @@ -27,6 +28,9 @@ func GetUsers() []string {
users := []string{}
iter := vars.UsersDB.NewIterator(nil, nil)
for iter.Next() {
if string(iter.Key()) == os.Getenv("ADMIN_USERNAME") {
continue
}
users = append(users, string(iter.Key()))
}
defer iter.Release()
Expand Down
2 changes: 1 addition & 1 deletion application/build.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
docker buildx create --use
docker buildx build --platform=linux/amd64,linux/arm64 --tag "devforth/onlogs:latest" --tag "devforth/onlogs:1.0.2" --push .
docker buildx build --platform=linux/amd64,linux/arm64 --tag "devforth/onlogs:latest" --tag "devforth/onlogs:1.0.3" --push .

0 comments on commit 65566d7

Please sign in to comment.