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