Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
xiaofang li
MeterSphere
Commits
07dbb1ef
Commit
07dbb1ef
authored
4 years ago
by
Captain.B
Committed by
刘瑞斌
4 years ago
Browse files
Options
Download
Email Patches
Plain Diff
fix: 修复userinfo接口报错
parent
058b31af
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
backend/src/main/java/io/metersphere/controller/UserController.java
+0
-3
...c/main/java/io/metersphere/controller/UserController.java
with
0 additions
and
3 deletions
+0
-3
backend/src/main/java/io/metersphere/controller/UserController.java
+
0
-
3
View file @
07dbb1ef
...
...
@@ -177,9 +177,6 @@ public class UserController {
@GetMapping
(
"/info/{userId}"
)
public
UserDTO
getUserInfo
(
@PathVariable
(
value
=
"userId"
)
String
userId
)
{
if
(!
StringUtils
.
equals
(
userId
,
SessionUtils
.
getUserId
()))
{
MSException
.
throwException
(
Translator
.
get
(
"not_authorized"
));
}
return
userService
.
getUserInfo
(
userId
);
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help