diff --git a/backend/src/router/thread.go b/backend/src/router/thread.go index 1e1bbcda..50885628 100644 --- a/backend/src/router/thread.go +++ b/backend/src/router/thread.go @@ -193,7 +193,7 @@ func updateThread(w http.ResponseWriter, r *http.Request) { return } - if credentials.Role.AccessLevel() != 0 && p.Member != credentials.ID { + if credentials.Role.AccessLevel() > 1 && p.Member != credentials.ID { http.Error(w, "Unauthorized", http.StatusForbidden) return } @@ -245,7 +245,7 @@ func deleteThread(w http.ResponseWriter, r *http.Request) { return } - if credentials.Role.AccessLevel() != 0 && p.Member != credentials.ID { + if credentials.Role.AccessLevel() > 1 && p.Member != credentials.ID { http.Error(w, "Unauthorized", http.StatusForbidden) return } diff --git a/frontend/.env.example b/frontend/.env.example index 5140d393..3c3724d0 100644 --- a/frontend/.env.example +++ b/frontend/.env.example @@ -1,3 +1,3 @@ VITE_GOOGLE_CLIENT_ID=balls.apps.googleusercontent.com VITE_GOOGLE_SCOPE="email profile openid https://www.googleapis.com/auth/gmail.compose" -VITE_API_URL=http://localhost:8080 +VITE_API_URL=http://localhost:8080 \ No newline at end of file diff --git a/frontend/src/components/Communications.vue b/frontend/src/components/Communications.vue index eb57b389..16316a80 100644 --- a/frontend/src/components/Communications.vue +++ b/frontend/src/components/Communications.vue @@ -307,7 +307,10 @@ -
+