Access forbidden on model errors in new project

Feature(s) impacted

Please describe in this mandatory section the feature(s) that will be discussed in this topic.

  • All routes not protected with permissionMiddlewareCreator

Observed behavior

Please describe in this mandatory section the current behavior you observe.
I’m receiving access forbidden on <model> errors for any model I try and load. If I remove permissionMiddlewareCreator the routes work just fine.

Context

  • Project name: agency-admin
  • Team name: Agency
  • Environment name: development

Ah, now I feel silly. I had the collection('Model', ... defined while my table name in the schema was defined as model (note the difference capitalization). This caused permissionMiddlewareCreator to not find it in the permissions object.

Ignore this but leaving it up in case anyone else runs into the same silly mistake!