We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e27fc6d commit 389b76bCopy full SHA for 389b76b
1 file changed
src/backend/src/utils/reimbursement-requests.utils.ts
@@ -245,6 +245,10 @@ export const isUserOnFinanceTeam = async (user: User): Promise<boolean> => {
245
/**
246
* Determines if a user is lead or head of the finance team.
247
*
248
+ * To be used for Prisma input validation of a plain User, as opposed to
249
+ * <code>isAuthUserLeadForFinance</code>, which uses the additional fields
250
+ * produced by authUserQueryArgs that are not in the User type by default.
251
+ *
252
* @param user the user to authenticate
253
* @returns whether the user is lead or head of the finance team
254
* @throws {HttpException} if finance team not found in database
0 commit comments