Skip to content

Commit d43873e

Browse files
fix: about api access (#924)
below roles will have access to about api - admin - editor - reader - writer ingestor does not need about api access as it cannot login or query. This is required so clients like Console can decide on runtime about which fields, pages to show to the logged in user.
1 parent b555f9b commit d43873e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/src/rbac/role.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ pub mod model {
207207
actions: vec![
208208
Action::Login,
209209
Action::Metrics,
210+
Action::GetAbout,
210211
Action::Ingest,
211212
Action::Query,
212213
Action::CreateStream,
@@ -243,6 +244,7 @@ pub mod model {
243244
RoleBuilder {
244245
actions: vec![
245246
Action::Login,
247+
Action::GetAbout,
246248
Action::Query,
247249
Action::ListStream,
248250
Action::GetSchema,
@@ -277,6 +279,7 @@ pub mod model {
277279
RoleBuilder {
278280
actions: vec![
279281
Action::Login,
282+
Action::GetAbout,
280283
Action::Query,
281284
Action::ListStream,
282285
Action::GetSchema,

0 commit comments

Comments
 (0)