This commit is contained in:
2024-08-31 10:34:18 +08:00
parent 97cfae5a18
commit 2ab16853ac
22 changed files with 57 additions and 27 deletions

View File

@@ -13,7 +13,7 @@ export const handler: Handlers = {
if (typ == "gallery") {
if (
user && !user.is_admin &&
!(user.permissions & UserPermission.ShareGallery)
!(Number(user.permissions) & UserPermission.ShareGallery)
) {
return return_error(403, "Permission denied.");
}