feat:优化应用端接口权限
parent
6c3cd91a36
commit
c78d7cd96d
|
@ -25,7 +25,9 @@ public class SaPermissionImpl implements StpInterface {
|
||||||
if (userType == UserType.SYS_USER) {
|
if (userType == UserType.SYS_USER) {
|
||||||
return new ArrayList<>(loginUser.getMenuPermission());
|
return new ArrayList<>(loginUser.getMenuPermission());
|
||||||
} else if (userType == UserType.APP_USER) {
|
} else if (userType == UserType.APP_USER) {
|
||||||
// 其他端 自行根据业务编写
|
List<String> perms = new ArrayList<>();
|
||||||
|
perms.add("*:*:*");
|
||||||
|
return perms;
|
||||||
}
|
}
|
||||||
return new ArrayList<>();
|
return new ArrayList<>();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue