Remove extra newline and rename setPermissionsTo to resetPermissions