Copy-paste considered harmful + Fixed double handling of gc->permit/deny which actually broke the block/allow commands.