fix: uid check

v1.18.x
Barış Soner Uşaklı 6 years ago
parent c24dcf78b7
commit efd7d953de

@ -8,7 +8,7 @@ module.exports = function (Groups) {
Groups.ownership = {};
Groups.ownership.isOwner = function (uid, groupName, callback) {
if (uid <= 0) {
if (!(parseInt(uid, 10) > 0)) {
return setImmediate(callback, null, false);
}
db.isSetMember('group:' + groupName + ':owners', uid, callback);

Loading…
Cancel
Save