commit
This commit is contained in:
@@ -83,6 +83,9 @@ public class SysMsgController {
|
||||
$condition
|
||||
""");
|
||||
Cnd cnd = Cnd.NEW();
|
||||
if(!AuthUtil.hasRoleOr(RoleConstant.SYSADMIN.name(), RoleConstant.SCHOOL_UNION_ADMIN.name())) {
|
||||
cnd.and("msg.createdBy", "=", SecurityUtil.getUserId());
|
||||
}
|
||||
cnd.groupBy("msg.id");
|
||||
if (Strings.isNotBlank(searchType) && !"all".equals(searchType)) {
|
||||
cnd.and("msg.type", "=", searchType);
|
||||
|
||||
Reference in New Issue
Block a user