We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aba18e6 commit 9060307Copy full SHA for 9060307
server/src/rbac/role.rs
@@ -125,6 +125,7 @@ pub mod model {
125
Editor,
126
Writer { stream: String },
127
Reader { stream: String, tag: Option<String> },
128
+ Ingest { stream: String },
129
}
130
131
impl From<&DefaultPrivilege> for RoleBuilder {
@@ -142,6 +143,9 @@ pub mod model {
142
143
144
reader
145
146
+ DefaultPrivilege::Ingest { stream } => {
147
+ ingest_perm_builder().with_stream(stream.to_owned())
148
+ }
149
150
151
@@ -210,4 +214,12 @@ pub mod model {
210
214
tag: None,
211
215
212
216
217
+
218
+ fn ingest_perm_builder() -> RoleBuilder {
219
+ RoleBuilder {
220
+ actions: vec![Action::Ingest],
221
+ stream: None,
222
+ tag: None,
223
224
213
225
0 commit comments