mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-13 18:45:06 +08:00
修复单元测试报错的问题
This commit is contained in:
@ -63,6 +63,7 @@ public class LoginUser implements UserDetails {
|
||||
/**
|
||||
* group 目前指岗位代替
|
||||
*/
|
||||
// TODO jason:这个字段,改成 postCodes 明确更好哈
|
||||
private List<String> groups;
|
||||
|
||||
|
||||
@ -89,6 +90,7 @@ public class LoginUser implements UserDetails {
|
||||
@JsonIgnore// 避免序列化
|
||||
public Collection<? extends GrantedAuthority> getAuthorities() {
|
||||
List<GrantedAuthority> list = new ArrayList<>(1);
|
||||
// TODO @芋艿:看看有没更优化的方案
|
||||
list.add(new SimpleGrantedAuthority("ROLE_ACTIVITI_USER"));
|
||||
return list;
|
||||
}
|
||||
|
Reference in New Issue
Block a user