Parcourir la source

fixes #1167

tags/v0.3.2.9^0
Big Bad Waffle il y a 5 ans
Parent
révision
c11b00210b
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. +4
    -1
      src/server/components/auth.js

+ 4
- 1
src/server/components/auth.js Voir le fichier

@@ -251,7 +251,10 @@ module.exports = {
},

doesOwnSkin: function (skinId) {
return [...this.skins, ...roles.getSkins(this.username)].some(s => s === skinId || s === '*');
let list = [...this.skins, ...roles.getSkins(this.username)];
let skinList = skins.getSkinList(list);

return skinList.some(s => s.id === (skinId + '') || s === '*');
},

login: async function (msg) {


Chargement…
Annuler
Enregistrer