|
|
@ -37,6 +37,7 @@ public class ManagerInfo {
|
|
|
|
private boolean bdleader;
|
|
|
|
private boolean bdleader;
|
|
|
|
private boolean riskmanager;
|
|
|
|
private boolean riskmanager;
|
|
|
|
private boolean guest;
|
|
|
|
private boolean guest;
|
|
|
|
|
|
|
|
private boolean orgmanager;
|
|
|
|
@JSONField(name = "org_id")
|
|
|
|
@JSONField(name = "org_id")
|
|
|
|
private Integer orgId;
|
|
|
|
private Integer orgId;
|
|
|
|
|
|
|
|
|
|
|
@ -101,6 +102,9 @@ public class ManagerInfo {
|
|
|
|
if (guest){
|
|
|
|
if (guest){
|
|
|
|
role |= ManagerRole.GUEST.getMask();
|
|
|
|
role |= ManagerRole.GUEST.getMask();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (orgmanager){
|
|
|
|
|
|
|
|
role |= ManagerRole.ORG_MANAGER.getMask();
|
|
|
|
|
|
|
|
}
|
|
|
|
account.put("role", role);
|
|
|
|
account.put("role", role);
|
|
|
|
if (insert) {
|
|
|
|
if (insert) {
|
|
|
|
account.put("username", getUsername());
|
|
|
|
account.put("username", getUsername());
|
|
|
@ -260,4 +264,12 @@ public class ManagerInfo {
|
|
|
|
public void setGuest(boolean guest) {
|
|
|
|
public void setGuest(boolean guest) {
|
|
|
|
this.guest = guest;
|
|
|
|
this.guest = guest;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public boolean isOrgmanager() {
|
|
|
|
|
|
|
|
return orgmanager;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setOrgmanager(boolean orgmanager) {
|
|
|
|
|
|
|
|
this.orgmanager = orgmanager;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|