Skip to content

Commit 3242f43

Browse files
author
Naomi Trevino
authored
Merge pull request #432 from NEU-DSG/fix-contributors-cant-edit-words
Contributors can edit words
2 parents f2666a7 + 4bb8229 commit 3242f43

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

graphql/src/query.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,9 @@ impl Mutation {
499499
Ok(true)
500500
}
501501

502-
#[graphql(guard = "GroupGuard::new(UserGroup::Editors)")]
502+
#[graphql(
503+
guard = "GroupGuard::new(UserGroup::Editors).or(GroupGuard::new(UserGroup::Contributors))"
504+
)]
503505
async fn update_word(
504506
&self,
505507
context: &Context<'_>,

0 commit comments

Comments
 (0)