diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 0153684..1967ba0 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,7 +4,9 @@
-
+
+
+
@@ -158,7 +160,6 @@
-
@@ -183,7 +184,8 @@
-
+
+
diff --git a/pkg/internal/grpc/auth.go b/pkg/internal/grpc/auth.go
index df04636..853908b 100644
--- a/pkg/internal/grpc/auth.go
+++ b/pkg/internal/grpc/auth.go
@@ -19,6 +19,7 @@ func (v *App) Authenticate(_ context.Context, in *proto.AuthRequest) (*proto.Aut
}, nil
} else {
user := ticket.Account
+ user.PermNodes = perms
userinfo := &proto.UserInfo{
Id: uint64(user.ID),
Name: user.Name,
diff --git a/pkg/internal/grpc/user.go b/pkg/internal/grpc/user.go
index 86f0d6f..318639e 100644
--- a/pkg/internal/grpc/user.go
+++ b/pkg/internal/grpc/user.go
@@ -6,7 +6,6 @@ import (
"git.solsynth.dev/hypernet/nexus/pkg/proto"
"git.solsynth.dev/hypernet/passport/pkg/authkit/models"
"git.solsynth.dev/hypernet/passport/pkg/internal/database"
- "git.solsynth.dev/hypernet/passport/pkg/internal/services"
"github.com/samber/lo"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
@@ -25,20 +24,6 @@ func (v *App) GetUser(ctx context.Context, request *proto.GetUserRequest) (*prot
if err := tx.First(&account).Error; err != nil {
return nil, status.Errorf(codes.NotFound, fmt.Sprintf("requested user with id %d was not found", request.GetUserId()))
}
-
- groups, err := services.GetUserAccountGroup(account)
- if err != nil {
- return nil, status.Errorf(codes.Internal, fmt.Sprintf("unable to get user %d groups: %v", request.GetUserId(), err))
- }
-
- for _, group := range groups {
- for k, v := range group.PermNodes {
- if _, ok := account.PermNodes[k]; !ok {
- account.PermNodes[k] = v
- }
- }
- }
-
return account.EncodeToUserInfo(), nil
}