Close #1105 - don't let security manager get replaced

This commit is contained in:
md_5 2014-07-09 09:41:19 +10:00
parent 8ce26e0370
commit 2dd3d2101d

View File

@ -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 );
}
} }
} }