Merge pull request #3481 from FinnStutzenstein/LockoutProtection
fixed client site lockout protection (fixed #3467)
This commit is contained in:
commit
4f9b1e178f
@ -177,7 +177,11 @@ angular.module('OpenSlidesApp.core', [
|
|||||||
},
|
},
|
||||||
// Returns true if the operator is a member of group.
|
// Returns true if the operator is a member of group.
|
||||||
isInGroup: function(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;
|
return operator;
|
||||||
|
Loading…
Reference in New Issue
Block a user