fix: Added some custom marks and changed notify message duration

pull/7619/head
Ruslan Semak 8 months ago
parent 41d3ba4312
commit fef4f5621d

@ -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;
}
}
}

@ -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,

Loading…
Cancel
Save