Commit c11b0021 authored by Big Bad Waffle's avatar Big Bad Waffle

fixes #1167

parent 7f6edbcf
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment