mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-21 15:54:21 +01:00
Fix regression from ded612d46b and fix https://github.com/CTFd/ctfcli/pull/20 (#1583)
* Fix regression for creating hints via ctfcli See #1582 for details. Closes https://github.com/CTFd/ctfcli/pull/20.
This commit is contained in:
@@ -9,9 +9,26 @@ class HintSchema(ma.ModelSchema):
|
|||||||
dump_only = ("id", "type", "html")
|
dump_only = ("id", "type", "html")
|
||||||
|
|
||||||
views = {
|
views = {
|
||||||
"locked": ["id", "type", "challenge", "cost"],
|
"locked": ["id", "type", "challenge", "challenge_id", "cost"],
|
||||||
"unlocked": ["id", "type", "challenge", "content", "html", "cost"],
|
"unlocked": [
|
||||||
"admin": ["id", "type", "challenge", "content", "html", "cost", "requirements"],
|
"id",
|
||||||
|
"type",
|
||||||
|
"challenge",
|
||||||
|
"challenge_id",
|
||||||
|
"content",
|
||||||
|
"html",
|
||||||
|
"cost",
|
||||||
|
],
|
||||||
|
"admin": [
|
||||||
|
"id",
|
||||||
|
"type",
|
||||||
|
"challenge",
|
||||||
|
"challenge_id",
|
||||||
|
"content",
|
||||||
|
"html",
|
||||||
|
"cost",
|
||||||
|
"requirements",
|
||||||
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, view=None, *args, **kwargs):
|
def __init__(self, view=None, *args, **kwargs):
|
||||||
|
|||||||
Reference in New Issue
Block a user