diff --git a/module/apps/ArtBrowser.mjs b/module/apps/ArtBrowser.mjs
index 19211c0..98d3cdb 100644
--- a/module/apps/ArtBrowser.mjs
+++ b/module/apps/ArtBrowser.mjs
@@ -187,7 +187,7 @@ export class ArtBrowser extends HandlebarsApplicationMixin(ApplicationV2) {
single: this.selectMode === `single`,
},
can: {
- upload: true,
+ upload: game.user.can(`FILES_UPLOAD`),
},
};
};
diff --git a/module/apps/ArtSidebar.mjs b/module/apps/ArtSidebar.mjs
index df4dd32..6eebd6a 100644
--- a/module/apps/ArtSidebar.mjs
+++ b/module/apps/ArtSidebar.mjs
@@ -32,6 +32,17 @@ export class ArtSidebar extends HandlebarsApplicationMixin(AbstractSidebarTab) {
// #endregion Options
// #region Data Prep
+ _prepareContext() {
+ return {
+ meta: {
+ idp: this.id,
+ },
+ can: {
+ upload: game.user.can(`FILES_UPLOAD`),
+ },
+ };
+ };
+
async _preparePartContext(partID, ctx) {
ctx = deepClone(ctx);
diff --git a/module/apps/ArtistBrowser.mjs b/module/apps/ArtistBrowser.mjs
index 4b20de3..29ffc19 100644
--- a/module/apps/ArtistBrowser.mjs
+++ b/module/apps/ArtistBrowser.mjs
@@ -117,7 +117,7 @@ export class ArtistBrowser extends HandlebarsApplicationMixin(ApplicationV2) {
idp: this.id,
},
can: {
- upload: true,
+ upload: game.user.can(`FILES_UPLOAD`),
},
};
};
diff --git a/templates/ArtSidebar/artists.hbs b/templates/ArtSidebar/artists.hbs
index 151e301..2ed9eda 100644
--- a/templates/ArtSidebar/artists.hbs
+++ b/templates/ArtSidebar/artists.hbs
@@ -12,11 +12,13 @@
>
{{ localize "IT.apps.ArtSidebar.view" }}
-
+ {{#if can.upload}}
+
+ {{/if}}
diff --git a/templates/ArtSidebar/tokens.hbs b/templates/ArtSidebar/tokens.hbs
index c303f4f..34071ba 100644
--- a/templates/ArtSidebar/tokens.hbs
+++ b/templates/ArtSidebar/tokens.hbs
@@ -12,11 +12,13 @@
>
{{ localize "IT.apps.ArtSidebar.view" }}
-
+ {{#if can.upload}}
+
+ {{/if}}