From 7d3b804516685607b95da5ffe06727d0bab3ce09 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Fri, 17 May 2024 17:13:11 +0800 Subject: [PATCH] :sparkles: Basis perm nodes feature --- .idea/workspace.xml | 10 +++---- pkg/grpc/auth.go | 5 +++- pkg/grpc/proto/auth.pb.go | 33 +++++++++++++------- pkg/grpc/proto/auth.proto | 1 + pkg/grpc/proto/auth_grpc.pb.go | 2 +- pkg/models/accounts.go | 15 +++++----- pkg/server/auth_middleware.go | 3 +- pkg/server/ws.go | 4 ++- pkg/services/accounts.go | 13 ++++++-- pkg/services/auth.go | 6 ++-- pkg/services/e2ee.go | 3 +- pkg/services/perms.go | 55 ++++++++++++++++++++++++++++++++++ settings.toml | 6 ++++ 13 files changed, 124 insertions(+), 32 deletions(-) create mode 100644 pkg/services/perms.go diff --git a/.idea/workspace.xml b/.idea/workspace.xml index d12a850..82c913b 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,9 +4,9 @@