mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-05 17:53:12 +02:00
Fix: add correct permissions for feature events endpoint.
This commit is contained in:
parent
c7375a7b7b
commit
c2edae3737
@ -2,7 +2,7 @@ import { Request, Response } from 'express';
|
|||||||
import { IUnleashConfig } from '../../types/option';
|
import { IUnleashConfig } from '../../types/option';
|
||||||
import { IUnleashServices } from '../../types/services';
|
import { IUnleashServices } from '../../types/services';
|
||||||
import EventService from '../../services/event-service';
|
import EventService from '../../services/event-service';
|
||||||
import { ADMIN } from '../../types/permissions';
|
import { ADMIN, NONE } from '../../types/permissions';
|
||||||
import { IEvent } from '../../types/events';
|
import { IEvent } from '../../types/events';
|
||||||
import Controller from '../controller';
|
import Controller from '../controller';
|
||||||
import { anonymise } from '../../util/anonymise';
|
import { anonymise } from '../../util/anonymise';
|
||||||
@ -58,7 +58,7 @@ export default class EventController extends Controller {
|
|||||||
method: 'get',
|
method: 'get',
|
||||||
path: '/:name',
|
path: '/:name',
|
||||||
handler: this.getEventsForToggle,
|
handler: this.getEventsForToggle,
|
||||||
permission: undefined,
|
permission: NONE,
|
||||||
middleware: [
|
middleware: [
|
||||||
openApiService.validPath({
|
openApiService.validPath({
|
||||||
operationId: 'getEventsForToggle',
|
operationId: 'getEventsForToggle',
|
||||||
|
Loading…
Reference in New Issue
Block a user