Close #1105 - don't let security manager get replaced
This commit is contained in:
parent
8ce26e0370
commit
2dd3d2101d
@ -54,5 +54,10 @@ public class BungeeSecurityManager extends SecurityManager
|
|||||||
@Override
|
@Override
|
||||||
public void checkPermission(Permission perm)
|
public void checkPermission(Permission perm)
|
||||||
{
|
{
|
||||||
|
switch ( perm.getName() )
|
||||||
|
{
|
||||||
|
case "setSecurityManager":
|
||||||
|
throw new AccessControlException( "Restricted Action", perm );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user