Handle ids of OO read only users correctly
This commit is contained in:
parent
8d0c411a38
commit
6638c4cc49
1 changed files with 4 additions and 1 deletions
|
@ -919,7 +919,10 @@ define([
|
|||
};
|
||||
|
||||
const getMyOOIndex = function() {
|
||||
return findUserByOOId(myOOId).index;
|
||||
const user = findUserByOOId(myOOId);
|
||||
return user
|
||||
? user.index
|
||||
: content.ids.length; // Assign an unused id to read-only users
|
||||
};
|
||||
|
||||
var getParticipants = function () {
|
||||
|
|
Loading…
Reference in a new issue