SupportVol / BackEnd

This repository manages data storage, authentication, and business logic for efficient volunteer coordination.
https://supportvol-dot-support-vol.as.r.appspot.com/
Apache License 2.0
1 stars 0 forks source link

Implement User Ban Functionality #33

Closed Programmer-RD-AI closed 3 months ago

Programmer-RD-AI commented 3 months ago

This pull request implements user ban functionality in the backend API. It adds routes to check, ban, and unban users. The Ban class from the admin model is utilized to handle user banning operations. The banUser, isUserBanned, and unBanUser methods are implemented to interact with Firebase Authentication and set custom user claims for banning and unbanning users. This functionality enhances the admin capabilities of the platform and provides efficient user management options.

deepsource-io[bot] commented 3 months ago

Here's the code health analysis summary for commits 64e75fc..bc74de4. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource JavaScript LogoJavaScript❌ Failure
❗ 14 occurences introduced
View Check ↗
DeepSource Python LogoPython✅ SuccessView Check ↗
DeepSource Test coverage LogoTest coverage⚠️ Artifact not reportedTimed out: Artifact was never reportedView Check ↗
DeepSource SQL LogoSQL✅ SuccessView Check ↗
DeepSource Secrets LogoSecrets✅ SuccessView Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.