|
|
@@ -29,7 +29,7 @@ public class AuthUserAspect {
|
|
|
AuthUser authUser = method.getAnnotation(AuthUser.class);
|
|
|
boolean auth = authUser.value();
|
|
|
LoginUser loginUser = UserContext.getLoginUser();
|
|
|
- if (auth && loginUser != null) {
|
|
|
+ if (auth && loginUser.getUserId() != -1) {
|
|
|
return point.proceed(point.getArgs());
|
|
|
}
|
|
|
|