瀏覽代碼

fixes #1167

tags/v0.3.2.9^0
Big Bad Waffle 5 年之前
父節點
當前提交
c11b00210b
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      src/server/components/auth.js

+ 4
- 1
src/server/components/auth.js 查看文件

@@ -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…
取消
儲存