diff --git a/server/src/main/java/com/mixel/docusphere/entity/User.java b/server/src/main/java/com/mixel/docusphere/entity/User.java index 2b220eb..57bcd0d 100644 --- a/server/src/main/java/com/mixel/docusphere/entity/User.java +++ b/server/src/main/java/com/mixel/docusphere/entity/User.java @@ -62,6 +62,8 @@ public class User implements UserDetails { this.userId = userId; } + // TODO: Figure out if this is necessary here since getUsername() should be used on the Entity however this references the interface + @Override public String getUsername() { return username; } @@ -113,11 +115,10 @@ public class User implements UserDetails { // UserDetails interface methods @Override public Collection getAuthorities() { - // Return the authorities granted to the user - return Collections.emptyList(); // Implement this based on your requirements + // Return the authorities (roles) from user which haven't been implemented yet + return Collections.emptyList(); // Return empty list since no roles exist yet } - @JsonIgnore @Override public String getPassword() { return passwordHash;