|
|
|
@ -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();
|
|
|
|
|