diff --git a/openslides/core/static/js/core/base.js b/openslides/core/static/js/core/base.js index 9455bdbb1..e12f5b55a 100644 --- a/openslides/core/static/js/core/base.js +++ b/openslides/core/static/js/core/base.js @@ -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;