Skip to content

Commit

Permalink
fix permission admin cant manage others dominion
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdeZhang committed Dec 16, 2024
1 parent fcea772 commit e8a8de8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var libraries = listOf<String>()
libraries = libraries + "cn.lunadeer:MinecraftPluginUtils:2.0.7"

group = "cn.lunadeer"
version = "3.2.0-beta"
version = "3.2.1-beta"

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static DominionDTO getDominionNameArg_1(Player player, String[] args) {
}

public static boolean noAuthToManage(Player player, DominionDTO dominion) {
if (player.isOp()) return false;
if (player.hasPermission("dominion.admin")) return false;
if (!dominion.getOwner().equals(player.getUniqueId())) {
MemberDTO privileges = cn.lunadeer.dominion.dtos.MemberDTO.select(player.getUniqueId(), dominion.getId());
if (privileges == null || !privileges.getAdmin()) {
Expand Down

0 comments on commit e8a8de8

Please sign in to comment.