aboutsummaryrefslogtreecommitdiff
path: root/ufund-api/src/main/java/com/ufund/api/ufundapi/service/AuthService.java
diff options
context:
space:
mode:
authorHayden Hartman <haydenhartman10@gmail.com>2025-03-17 21:49:35 -0400
committerGitHub <noreply@github.com>2025-03-17 21:49:35 -0400
commitd1b7b81cbedc673cf6f52ac5745438f95083b78e (patch)
tree948255f18f05f2a26e22126de44fa433635876df /ufund-api/src/main/java/com/ufund/api/ufundapi/service/AuthService.java
parent1bf10f9f26f47ea5cff7ff48d5664febb0ed2585 (diff)
parent54876363de44791ba65b6c43b795f8d0c3548ecc (diff)
downloadJellySolutions-d1b7b81cbedc673cf6f52ac5745438f95083b78e.tar.gz
JellySolutions-d1b7b81cbedc673cf6f52ac5745438f95083b78e.tar.bz2
JellySolutions-d1b7b81cbedc673cf6f52ac5745438f95083b78e.zip
Merge pull request #10 from RIT-SWEN-261-02/cupboard-component
Cupboard component
Diffstat (limited to 'ufund-api/src/main/java/com/ufund/api/ufundapi/service/AuthService.java')
-rw-r--r--ufund-api/src/main/java/com/ufund/api/ufundapi/service/AuthService.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/ufund-api/src/main/java/com/ufund/api/ufundapi/service/AuthService.java b/ufund-api/src/main/java/com/ufund/api/ufundapi/service/AuthService.java
index 5a1a492..87a16a6 100644
--- a/ufund-api/src/main/java/com/ufund/api/ufundapi/service/AuthService.java
+++ b/ufund-api/src/main/java/com/ufund/api/ufundapi/service/AuthService.java
@@ -30,12 +30,12 @@ public class AuthService {
if (userAuth == null) {
throw new IllegalAccessException("Unauthenticated");
}
-
- var username = userAuth.getUsername();
- var userType = userService.getUser(username).getType();
- if (!username.equals(targetUsername) && userType != User.UserType.MANAGER) {
- throw new IllegalAccessException("Unauthorized");
- }
+//
+// var username = userAuth.getUsername();
+// var userType = userService.getUser(username).getType();
+// if (!username.equals(targetUsername) && userType != User.UserType.MANAGER) {
+// throw new IllegalAccessException("Unauthorized");
+// }
}
/**