Initial commit

This commit is contained in:
2025-10-02 08:54:03 +02:00
commit ea54638227
1642 changed files with 53677 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
const { withAccount } = require("../lib/utils")
;(function () {
if (context.user.auth()) return {}
withAccount((login) => {
const id = context.request().param("id")
const user = context.db.find("bigCommerceCustomer", {
filter: {
$or: [
{
"personalRecords.recording": id,
},
{
"personalRecords.thumbnail": id,
},
],
},
})[0]
if (login.tibiId !== user.id) {
return {
status: 403,
message: "You are not authorized to delete this media",
}
}
})
})()