From fef4f5621dc6a1b014c9ab0b73b244983be2c1ba Mon Sep 17 00:00:00 2001 From: Ruslan Semak Date: Fri, 11 Apr 2025 11:05:23 +0300 Subject: [PATCH] fix: Added some custom marks and changed notify message duration --- client/components/common/notify.vue | 4 ++-- server/controllers/upload.js | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/client/components/common/notify.vue b/client/components/common/notify.vue index 4fb9e26b..03430397 100644 --- a/client/components/common/notify.vue +++ b/client/components/common/notify.vue @@ -4,7 +4,7 @@ top multi-line v-model='notificationState' - :timeout='6000' + :timeout='2000' ) .text-left v-icon.mr-3(dark) mdi-{{ notification.icon }} @@ -46,7 +46,7 @@ export default { position: absolute; bottom: 0; left: 0; - animation: nav-notify-anim 6s linear; + animation: nav-notify-anim 2s linear; } } } diff --git a/server/controllers/upload.js b/server/controllers/upload.js index 3da4dcac..99c50321 100644 --- a/server/controllers/upload.js +++ b/server/controllers/upload.js @@ -19,6 +19,9 @@ router.post('/u', (req, res, next) => { } }).array('mediaUpload')(req, res, next) }, async (req, res, next) => { + /** + * Ruslan: Disable this check for bulk uploading + */ if (!_.some(req.user.permissions, pm => _.includes(['write:assets', 'manage:system'], pm))) { return res.status(403).json({ succeeded: false, @@ -80,6 +83,9 @@ router.post('/u', (req, res, next) => { // Check if user can upload at path const assetPath = (folderId) ? hierarchy.map(h => h.slug).join('/') + `/${fileMeta.originalname}` : fileMeta.originalname + /** + * Ruslan: Disable this check for bulk uploading + */ if (!WIKI.auth.checkAccess(req.user, ['write:assets'], { path: assetPath })) { return res.status(403).json({ succeeded: false,