mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-10 17:15:07 +08:00
1. 实现空的 bpm UserGroupManager
2. 去除任务分配时,candidateUsers 协调者
This commit is contained in:
@ -65,11 +65,6 @@ public class LoginUser implements UserDetails {
|
||||
* 所属岗位
|
||||
*/
|
||||
private Set<Long> postIds;
|
||||
/**
|
||||
* group 目前指岗位代替
|
||||
*/
|
||||
// TODO jason:这个字段,改成 postCodes 明确更好哈
|
||||
private List<String> groups;
|
||||
|
||||
// ========== 上下文 ==========
|
||||
/**
|
||||
@ -100,12 +95,7 @@ public class LoginUser implements UserDetails {
|
||||
@Override
|
||||
@JsonIgnore// 避免序列化
|
||||
public Collection<? extends GrantedAuthority> getAuthorities() {
|
||||
List<GrantedAuthority> list = new ArrayList<>(1);
|
||||
// 设置 ROLE_ACTIVITI_USER 角色,保证 activiti7 在 Security 验证时,可以通过。参考 https://juejin.cn/post/6972369247041224712 文章
|
||||
// TODO 芋艿:这里估计得优化下
|
||||
// TODO @芋艿:看看有没更优化的方案
|
||||
list.add(new SimpleGrantedAuthority("ROLE_ACTIVITI_USER"));
|
||||
return list;
|
||||
return new HashSet<>();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user