Skip to content

Commit

Permalink
Add doc comment to read_role
Browse files Browse the repository at this point in the history
  • Loading branch information
owi92 committed Sep 14, 2023
1 parent 088e809 commit 68430aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/api/model/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ impl AuthorizedEvent {
fn metadata(&self) -> &ExtraMetadata {
&self.metadata
}
/// This doesn't contain `ROLE_ADMIN` as that is included implicitly.
fn read_roles(&self) -> &[String] {
&self.read_roles
}
Expand Down
1 change: 1 addition & 0 deletions frontend/src/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ type AuthorizedEvent implements Node {
created: DateTimeUtc!
creators: [String!]!
metadata: ExtraMetadata!
"This doesn't contain `ROLE_ADMIN` as that is included implicitly."
readRoles: [String!]!
"This doesn't contain `ROLE_ADMIN` as that is included implicitly."
writeRoles: [String!]!
Expand Down

0 comments on commit 68430aa

Please sign in to comment.