diff --git a/src/components/Navbar/rolesHandler.ts b/src/components/Navbar/rolesHandler.ts index 163299e4..a92e8c5e 100644 --- a/src/components/Navbar/rolesHandler.ts +++ b/src/components/Navbar/rolesHandler.ts @@ -4,39 +4,6 @@ const writerAccess = ["Ingest", "Query", "ListStream", "GetSchema", "GetStats", const readerAccess = ["Query", "ListStream", "GetSchema", "GetStats", "GetRetention", "GetAlert"] -const adminAccess = [ - 'Ingest', - 'Query', - 'CreateStream', - 'ListStream', - 'GetSchema', - 'GetStats', - 'DeleteStream', - 'GetRetention', - 'PutRetention', - 'PutAlert', - 'GetAlert', - 'PutUser', - 'ListUser', - 'DeleteUser', - 'PutRoles', - 'GetRole', -]; -const editorAccess = [ - 'Ingest', - 'Query', - 'CreateStream', - 'ListStream', - 'GetSchema', - 'GetStats', - 'GetRetention', - 'PutRetention', - 'PutAlert', - 'GetAlert', -]; -const writerAccess = ['Ingest', 'Query', 'ListStream', 'GetSchema', 'GetStats', 'GetRetention', 'PutAlert', 'GetAlert']; -const readerAccess = ['Query', 'ListStream', 'GetSchema', 'GetStats', 'GetRetention', 'GetAlert']; - const getStreamsSepcificAccess = (rolesWithRoleName: object[], stream: string) => { let access: string[] = []; let roles: any[] = [];