Explorar el Código

fixes #1167

tags/v0.3.2.9^0
Big Bad Waffle hace 5 años
padre
commit
c11b00210b
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. +4
    -1
      src/server/components/auth.js

+ 4
- 1
src/server/components/auth.js Ver fichero

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


Cargando…
Cancelar
Guardar