Fix town creation over untrusted claims.
This commit is contained in:
parent
601ee8654f
commit
de072d3fa5
|
@ -1236,7 +1236,9 @@ public class GDClaim implements Claim {
|
||||||
if (claim.isAdminClaim()) {
|
if (claim.isAdminClaim()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
if (!claim.isUserTrusted(this.ownerUniqueId, TrustTypes.MANAGER)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1253,7 +1253,9 @@ public class GDClaim implements Claim {
|
||||||
if (claim.isAdminClaim()) {
|
if (claim.isAdminClaim()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
if (!claim.isUserTrusted(this.ownerUniqueId, TrustTypes.MANAGER)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue