feat: add recalculateAllElo function for idempotent ELO recalculation
This commit is contained in:
@@ -215,3 +215,17 @@ export async function getManageableTournaments() {
|
||||
orderBy: { createdAt: 'desc' }
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the user can edit user profiles (only club_admin)
|
||||
*/
|
||||
export async function canEditUserProfiles(): Promise<PermissionCheck> {
|
||||
return hasRole('club_admin');
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the user can recalculate ELO ratings (only club_admin)
|
||||
*/
|
||||
export async function canRecalculateElo(): Promise<PermissionCheck> {
|
||||
return hasRole('club_admin');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user