Untrust in top level => untrust in children.
This commit is contained in:
parent
e7e16e88fd
commit
94739b58b0
|
|
@ -569,12 +569,22 @@ public class Claim
|
||||||
public void dropPermission(String playerID)
|
public void dropPermission(String playerID)
|
||||||
{
|
{
|
||||||
this.playerIDToClaimPermissionMap.remove(playerID.toLowerCase());
|
this.playerIDToClaimPermissionMap.remove(playerID.toLowerCase());
|
||||||
|
|
||||||
|
for(Claim child : this.children)
|
||||||
|
{
|
||||||
|
child.dropPermission(playerID);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//clears all permissions (except owner of course)
|
//clears all permissions (except owner of course)
|
||||||
public void clearPermissions()
|
public void clearPermissions()
|
||||||
{
|
{
|
||||||
this.playerIDToClaimPermissionMap.clear();
|
this.playerIDToClaimPermissionMap.clear();
|
||||||
|
|
||||||
|
for(Claim child : this.children)
|
||||||
|
{
|
||||||
|
child.clearPermissions();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//gets ALL permissions
|
//gets ALL permissions
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user