mirror of
https://github.com/Hello-hao/Tbed.git
synced 2024-04-21 12:32:10 +00:00
:bug:修复代码问题
This commit is contained in:
@@ -441,7 +441,7 @@ public class AdminController {
|
||||
Keys key = keysService.selectKeys(keyid);
|
||||
|
||||
if(!subject.hasRole("admin")){
|
||||
if(image.getUserid()!=user.getId()){
|
||||
if(!image.getUserid().equals(user.getId())){
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -267,7 +267,7 @@ public class IndexController {
|
||||
Subject subject = SecurityUtils.getSubject();
|
||||
User user = (User) subject.getPrincipal();
|
||||
if(null!=user){
|
||||
if(user.getId()!=image.getUserid()){
|
||||
if(!user.getId().equals(image.getUserid())){
|
||||
msg.setInfo("删除失败,该图片不允许你执行操作");
|
||||
msg.setCode("100403");
|
||||
return msg;
|
||||
|
||||
@@ -88,8 +88,8 @@ public class GroupServiceImpl implements GroupService {
|
||||
if(group.getUsertype()!=0){
|
||||
Group groupFroUserType = groupMapper.getGroupFroUserType(group.getUsertype());
|
||||
if(groupFroUserType!=null){
|
||||
if(groupFroUserType.getUsertype()==group.getUsertype()){
|
||||
if(groupFroUserType.getId()==group.getId()){
|
||||
if(groupFroUserType.getUsertype().equals(group.getUsertype())){
|
||||
if(groupFroUserType.getId().equals(group.getId())){
|
||||
groupMapper.setgroup(group);
|
||||
msg.setInfo("修改成功");
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user