Skip to content

Commit fc8b6d1

Browse files
authored
Merge pull request #1825 from Mephistic/remove-pending-upgrade
Temporarily Disable pendingUpgrade flow for organizations
2 parents dd73636 + e448b95 commit fc8b6d1

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

functions/src/profile/finishSignup.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,17 @@ export const finishSignup = functions.https.onCall(async (data, context) => {
1414

1515
const { requestedRole } = checkRequestZod(CreateProfileRequest, data)
1616

17-
let role: Role = "user"
17+
let role: Role = requestedRole
1818

1919
// Only an admin can approve organizations, after they've signed up initially
2020
// There's a nextjs api route: PATCH /users/<uid> {"role": <role>}
21-
if (requestedRole === "organization") {
22-
role = "pendingUpgrade"
23-
}
21+
22+
// Removing the "pendingUpgrade" flow (temporarily) because the
23+
// organization approval process is currently too cumbersome.
24+
25+
// if (requestedRole === "organization") {
26+
// role = "pendingUpgrade"
27+
// }
2428

2529
await setRole({ role, auth, db, uid })
2630

0 commit comments

Comments
 (0)