Rename to get/setMembership (to indicate IDs and not group objects

This commit is contained in:
Girish Ramakrishnan
2018-06-18 13:57:17 -07:00
parent 1dbcf2a46a
commit 7f3114e67d
8 changed files with 28 additions and 28 deletions

View File

@@ -348,7 +348,7 @@ function hasAccessTo(app, user, callback) {
if (app.accessRestriction.users.some(function (e) { return e === user.id; })) return callback(null, true);
// check group access
groups.getGroups(user.id, function (error, groupIds) {
groups.getMembership(user.id, function (error, groupIds) {
if (error) return callback(null, false);
const isAdmin = groupIds.indexOf(constants.ADMIN_GROUP_ID) !== -1;