Rename to get/setMembership (to indicate IDs and not group objects
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user