Hide the Create/Upload buttons when the user doesn't have that permission (closes #16)
This commit is contained in:
parent
177a7bb637
commit
4a2c40397f
5 changed files with 31 additions and 16 deletions
|
|
@ -117,7 +117,7 @@ export class ArtistBrowser extends HandlebarsApplicationMixin(ApplicationV2) {
|
|||
idp: this.id,
|
||||
},
|
||||
can: {
|
||||
upload: true,
|
||||
upload: game.user.can(`FILES_UPLOAD`),
|
||||
},
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue