Fixing one permission check bug and adding some debug output in hope to find that bug.

This commit is contained in:
Olof Larsson
2013-04-29 16:29:10 +02:00
parent 709c1fe80d
commit cf03bd5b8a
3 changed files with 15 additions and 2 deletions

View File

@ -47,6 +47,7 @@ public class CmdFactionsPerm extends FCommand
FPerm perm = this.arg(1, ARFPerm.get());
if (perm == null) return;
System.out.println("perm = "+perm);
if ( ! this.argIsSet(2))
{
@ -72,6 +73,7 @@ public class CmdFactionsPerm extends FCommand
if (val == null) return;
// Do the change
System.out.println("setRelationPermitted perm "+perm+", rel "+rel+", val "+val);
faction.setRelationPermitted(perm, rel, val);
// The following is to make sure the leader always has the right to change perms if that is our goal.