public CommandProcessingResult updateMakerCheckerPermissions(final JsonCommand command) {
this.context.authenticatedUser();
final Collection<Permission> allPermissions = this.permissionRepository.findAll();
final PermissionsCommand permissionsCommand = this.fromApiJsonDeserializer.commandFromApiJson(command.json());
final Map<String, Boolean> commandPermissions = permissionsCommand.getPermissions();
final Map<String, Object> changes = new HashMap<>();
final Map<String, Boolean> changedPermissions = new HashMap<>();
for (final String permissionCode : commandPermissions.keySet()) {
final Permission permission = findPermissionInCollectionByCode(allPermissions, permissionCode);