mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-07 08:09:01 +02:00
List projects where user is added as reviewer (#22347)
* Support for adding reviewer role * added collaboratorsGetter tests * emit toggle-track-changes when reviewer is added * List projects where user is added as reviewer GitOrigin-RevId: 8ec9e59e4c0b65167705b0a56be3e309ef6af3e7
This commit is contained in:
committed by
Copybot
parent
53dc5fbafe
commit
db9dba4b7a
@@ -904,8 +904,14 @@ const _ProjectController = {
|
||||
},
|
||||
_buildProjectList(allProjects, userId) {
|
||||
let project
|
||||
const { owned, readAndWrite, readOnly, tokenReadAndWrite, tokenReadOnly } =
|
||||
allProjects
|
||||
const {
|
||||
owned,
|
||||
review,
|
||||
readAndWrite,
|
||||
readOnly,
|
||||
tokenReadAndWrite,
|
||||
tokenReadOnly,
|
||||
} = allProjects
|
||||
const projects = []
|
||||
for (project of owned) {
|
||||
projects.push(
|
||||
@@ -928,6 +934,16 @@ const _ProjectController = {
|
||||
)
|
||||
)
|
||||
}
|
||||
for (project of review) {
|
||||
projects.push(
|
||||
ProjectController._buildProjectViewModel(
|
||||
project,
|
||||
'review',
|
||||
Sources.INVITE,
|
||||
userId
|
||||
)
|
||||
)
|
||||
}
|
||||
for (project of readOnly) {
|
||||
projects.push(
|
||||
ProjectController._buildProjectViewModel(
|
||||
|
||||
Reference in New Issue
Block a user