We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b4e7ec commit 2773b35Copy full SHA for 2773b35
components/dashboard/src/admin/UserDetail.tsx
@@ -54,6 +54,9 @@ export default function UserDetail(p: { user: User }) {
54
};
55
56
const addStudentDomain = async () => {
57
+ if (emailDomain === 'gmail.com') {
58
+ throw new Error(`Sanity check: Not adding '${emailDomain}' as a verified student email domain`);
59
+ }
60
await updateUser(async u => {
61
await getGitpodService().server.adminAddStudentEmailDomain(u.id, emailDomain);
62
await getGitpodService().server.adminIsStudent(u.id).then(
0 commit comments