This commit is contained in:
parent
64b65ba3ce
commit
fd88a4e374
4 changed files with 28 additions and 5 deletions
|
@ -107,6 +107,11 @@ pub fn upload_level(input: Form<FormUploadLevel>) -> status::Custom<&'static str
|
|||
return status::Custom(Status::Ok, "-1")
|
||||
}
|
||||
|
||||
// ACE vulnerability check
|
||||
if let Some(_ace_object) = level_objects.iter().find(|obj| obj.item_block_id() < Some(0) || obj.item_block_id() > Some(1100)) {
|
||||
return status::Custom(Status::Ok, "-1")
|
||||
}
|
||||
|
||||
// data base 🤣😁
|
||||
use crate::models::{Level, NewLevel};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue