AWeber-Imbi / imbi

An operational management platform for medium to large environments
BSD 3-Clause "New" or "Revised" License
2 stars 12 forks source link

Use base.require_permission consistently across endpoints #106

Open in-op opened 2 months ago

in-op commented 2 months ago

We currently have two patterns for requiring admin permissions in the API, a base class of AdminCRUDRequestHandler, and a require_permission('admin') decorator. However, there are a number of endpoints (such as namespaces) using the AdminCRUDRequestHandler when GET should be accessible to everyone, as defined in the openapi spec. These should be standardized and match the required openapi spec.