You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fccdeff
Browse filesBrowse the repository at this point in the historyBrowse files
* Campus ambassadors, for admins and the registration team only (verifyRegistrationStaff): the AMBASSADORS tab of the
9
-
* admin dashboard is the programme's only portal. Students become ambassadors themselves (GET MY CODE, POST
8
+
* Campus ambassadors, for admins and the registration team only (verifyRegistrationStaff; the read-only 'viewer' role
9
+
* may GET, verifyRegistrationViewer): the AMBASSADORS tab of the admin dashboard is the programme's only portal. Students become ambassadors themselves (GET MY CODE, POST
10
10
* /api/ambassador/code); staff watch the counts, contact them and revoke a code that is abused. Everything runs as the
11
11
* service role: no client role can read or write the table or the leaderboard view (supabase/schema.sql, section 16).
{error: 'Invalid role. Only "user", "it-team", and "registration-team" can be assigned via the dashboard. Admin roles must be set directly in the database.'},
74
+
{error: 'Invalid role. Only "user", "it-team", "registration-team" and "viewer" can be assigned via the dashboard. Admin roles must be set directly in the database.'},
75
75
{status: 400}
76
76
);
77
77
}
@@ -97,14 +97,21 @@ export async function PATCH(req: NextRequest) {
97
97
);
98
98
}
99
99
100
-
// Target user profile verified as non-admin -> execute role change to 'user', 'it-team', or 'registration-team'
100
+
// Target user profile verified as non-admin -> execute role change to 'user', 'it-team', 'registration-team' or 'viewer'
0 commit comments