Skip to content

Commit

Permalink
slight tightening of query validators for associates and editors
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-jones committed Nov 8, 2023
1 parent ceee784 commit 844f590
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions portality/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -827,13 +827,15 @@
"journal" : {
"auth" : True,
"role" : "associate_editor",
"query_validators" : ["non_public_fields_validator"],
"query_filters" : ["associate", "search_all_meta"],
"dao" : "portality.models.Journal" # ~~->Journal:Model~~
},
# ~~->AssEdApplicationQuery:Endpoint~~
"suggestion" : {
"auth" : True,
"role" : "associate_editor",
"query_validators" : ["non_public_fields_validator"],
"query_filters" : ["associate", "search_all_meta"],
"dao" : "portality.models.Application" # ~~->Application:Model~~
}
Expand All @@ -843,13 +845,15 @@
"journal" : {
"auth" : True,
"role" : "editor",
"query_validators" : ["non_public_fields_validator"],
"query_filters" : ["editor", "search_all_meta"],
"dao" : "portality.models.Journal" # ~~->Journal:Model~~
},
# ~~->EditorApplicationQuery:Endpoint~~
"suggestion" : {
"auth" : True,
"role" : "editor",
"query_validators" : ["non_public_fields_validator"],
"query_filters" : ["editor", "search_all_meta"],
"dao" : "portality.models.Application" # ~~->Application:Model~~
}
Expand Down

0 comments on commit 844f590

Please sign in to comment.