dev
liuguijing 1 year ago
commit 49d14d3605

@ -23,8 +23,8 @@ public class SecurityConfig {
private String jwtPrefix = "Bearer";
// default 24 hours
private Integer jwtExpiration = 24 * 60 * 60;
// default 7 days
private Integer jwtExpiration = 7 * 24 * 60 * 60;
private List<String> urlWhiteList = Lists.newArrayList();

@ -105,7 +105,7 @@ public class RoleServiceImpl implements RoleService {
@Override
public void changePermission(Integer roleId, List<TbPermission> list) throws Exception {
if (roleId == SUPER_ADMIN) {
throw new Exception("不能修改admin的权限");
throw new Exception("不能修改超级管理员的权限");
}
TbPermissionExample example = new TbPermissionExample();
TbPermissionExample.Criteria criteria = example.createCriteria();

Loading…
Cancel
Save