message: Fixed an error preventing the osf to load in debug mode
  This is a quick fix which prevents the osf from loading in debug mode on port 4200
diff: @@ -90,12 +90,14 @@ export default Factory.extend<MirageRegistrationProvider & RegistrationProviderT
  }),
  currentUserIsModerator: trait<RegistrationProvider>({
  afterCreate(provider, server) {
  + if (server.schema.roots.first()) {
  const { currentUserId, currentUser } = server.schema.roots.first();
  const moderator = server.create('moderator', { id: currentUserId, user: currentUser! });
  provider.update({
  moderators: [moderator],
  permissions: [ReviewPermissions.ViewSubmissions],
  });
  + }
  },
  }),
  });
  