mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
disable admin limitations
This commit is contained in:
parent
afca74d6c7
commit
d69579c9fd
@ -30,17 +30,17 @@ export default {
|
|||||||
useProvider: "standard",
|
useProvider: "standard",
|
||||||
}
|
}
|
||||||
|
|
||||||
const user = await req.auth.user()
|
// const user = await req.auth.user()
|
||||||
|
|
||||||
if (user.roles.includes("admin")) {
|
// if (user.roles.includes("admin")) {
|
||||||
// maxFileSize for admins 100GB
|
// // maxFileSize for admins 100GB
|
||||||
limits.maxFileSize = 100 * 1024 * 1024 * 1024
|
// limits.maxFileSize = 100 * 1024 * 1024 * 1024
|
||||||
|
|
||||||
// optional compression for admins
|
// // optional compression for admins
|
||||||
limits.useCompression = req.headers["use-compression"] ?? false
|
// limits.useCompression = req.headers["use-compression"] ?? false
|
||||||
|
|
||||||
limits.useProvider = req.headers["provider-type"] ?? "b2"
|
// limits.useProvider = req.headers["provider-type"] ?? "b2"
|
||||||
}
|
// }
|
||||||
|
|
||||||
// check if provider is valid
|
// check if provider is valid
|
||||||
if (!availableProviders.includes(limits.useProvider)) {
|
if (!availableProviders.includes(limits.useProvider)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user