commit
This commit is contained in:
+7
-1
@@ -144,7 +144,13 @@ public class CondolenceApplyController {
|
||||
cnd.and(seg);
|
||||
}
|
||||
if(!AuthUtil.hasRoleOr(RoleConstant.SYSADMIN.name(), RoleConstant.SCHOOL_UNION_ADMIN.name())) {
|
||||
if(AuthUtil.hasRoleOr(RoleConstant.BRANCH_UNION_ADMIN.name(), RoleConstant.BRANCH_UNION_CHAIRMAN.name())) {
|
||||
if(AuthUtil.hasRoleOr(
|
||||
RoleConstant.BRANCH_UNION_ADMIN.name(),
|
||||
RoleConstant.BRANCH_UNION_CHAIRMAN.name(),
|
||||
RoleConstant.BRANCH_UNION_WY.name(),
|
||||
RoleConstant.BRANCH_UNION_XUANCHUAN_WY.name(),
|
||||
RoleConstant.BRANCH_UNION_WENTI_WY.name()
|
||||
)) {
|
||||
cnd.and(View_user::getUnionId, "=", SecurityUtil.getUnionId());
|
||||
} else {
|
||||
cnd.and(View_user::getId, "=", SecurityUtil.getUserId());
|
||||
|
||||
Reference in New Issue
Block a user