fixed client site lockout protection (fixed #3467)

This commit is contained in:
FinnStutzenstein 2017-11-07 09:57:09 +01:00
parent 9fd0121132
commit bb322b7793

View File

@ -177,7 +177,11 @@ angular.module('OpenSlidesApp.core', [
},
// Returns true if the operator is a member of group.
isInGroup: function(group) {
return _.indexOf(operator.user.groups_id, group.id) > -1;
var groups = operator.user.groups_id;
if (groups.length === 0) {
groups = [1]; // Set the default group, if no other groups are set.
}
return _.indexOf(groups, group.id) > -1;
},
};
return operator;