Shared pages refactoring part 1

This commit is contained in:
Čarodej
2022-02-08 10:01:38 +01:00
parent 09774b1d48
commit f04c057490
25 changed files with 170 additions and 191 deletions

View File

@@ -38,7 +38,7 @@ const itemHelpers = {
Vue.prototype.$downloadSelection = function (item = undefined) {
// Show alert message when download is disabled
if (!store.getters.user.data.meta.restrictions.canDownload) {
if (store.getters.user && !store.getters.user.data.meta.restrictions.canDownload) {
Vue.prototype.$temporarilyDisabledDownload()
return