mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 05:41:33 +02:00
Merge pull request #27894 from overleaf/ii-domain-capture-join-button
[web] Domain capture join button GitOrigin-RevId: aec6033f6776e9384c77fe0ef609c65b13a90f87
This commit is contained in:
@@ -500,11 +500,8 @@ describe('ProjectListController', function () {
|
||||
.withArgs(ctx.req, ctx.res, 'domain-capture-redirect')
|
||||
.resolves({ variant: 'enabled' })
|
||||
ctx.Modules.promises.hooks.fire
|
||||
.withArgs(
|
||||
'findDomainCaptureAndManagedUsersGroupUserShouldBePartOf',
|
||||
ctx.user._id
|
||||
)
|
||||
.resolves([{ _id: new ObjectId() }])
|
||||
.withArgs('findDomainCaptureGroupUserCouldBePartOf', ctx.user._id)
|
||||
.resolves([{ _id: new ObjectId(), managedUsersEnabled: true }])
|
||||
ctx.res.redirect = url => {
|
||||
url.should.equal('/domain-capture')
|
||||
resolve()
|
||||
|
||||
Reference in New Issue
Block a user