Browse Source

fixes #1167

tags/v0.3.2.9^0
Big Bad Waffle 5 years ago
parent
commit
c11b00210b
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/server/components/auth.js

+ 4
- 1
src/server/components/auth.js View File

@@ -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) {


Loading…
Cancel
Save