mirror of
https://github.com/bellingcat/auto-archiver-api.git
synced 2026-06-12 21:48:35 +03:00
default group should actually exist
This commit is contained in:
@@ -65,14 +65,6 @@ class GroupPermissions(BaseModel):
|
|||||||
raise ValueError("priority must be either 'low' or 'high'.")
|
raise ValueError("priority must be either 'low' or 'high'.")
|
||||||
return v
|
return v
|
||||||
|
|
||||||
@field_validator('read', mode='before')
|
|
||||||
def validate_priority(cls, v):
|
|
||||||
if type(v) == list:
|
|
||||||
if "default" in v:
|
|
||||||
raise ValueError("The 'default' group is not used for archive permissions, please remove it.")
|
|
||||||
return v
|
|
||||||
|
|
||||||
|
|
||||||
class GroupModel(BaseModel):
|
class GroupModel(BaseModel):
|
||||||
description: str
|
description: str
|
||||||
orchestrator: str
|
orchestrator: str
|
||||||
|
|||||||
Reference in New Issue
Block a user