Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

Commit

Permalink
[+] grp group remove 移除子权限组功能
Browse files Browse the repository at this point in the history
  • Loading branch information
hykilpikonna committed Jul 26, 2018
1 parent 11a0644 commit 3592a83
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,21 @@ else if (args.get(0).equals("group"))
return "无法添加继承, 权限组" + newGroup.getGroupName() + "已存在";
}
}
else if (args.get(1).equals("remove"))
{
if (group.getContainings().contains(newGroup))
{
group.getContainings().remove(newGroup);

Main.getDatabase().setGroup(group);

return "已移除权限组继承: " + newGroup.getGroupName();
}
else
{
return "无法移除继承, 权限组" + newGroup.getGroupName() + "已存在";
}
}
}
}
else
Expand Down

0 comments on commit 3592a83

Please sign in to comment.