diff options
| author | Jake Mannens <jake@asger.xyz> | 2026-06-21 21:02:44 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2026-06-25 12:26:07 +1000 |
| commit | 713867bbda8322a0938d6b8f0c850752622fdd42 (patch) | |
| tree | 1f8c4e58480471aecdee37e3f734c4c1211e16b1 /Controllers/ApiUserController.cs | |
| parent | 79d383f6f48df0078e6ba13239f9c4c94fbc9ea6 (diff) | |
Diffstat (limited to 'Controllers/ApiUserController.cs')
| -rw-r--r-- | Controllers/ApiUserController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Controllers/ApiUserController.cs b/Controllers/ApiUserController.cs index 3230218..c581956 100644 --- a/Controllers/ApiUserController.cs +++ b/Controllers/ApiUserController.cs @@ -92,7 +92,7 @@ public class ApiUserController : Controller { [HttpDelete("{userId}")] public async Task<IActionResult> DeleteUserAsync([FromRoute] Guid userId) { - if(userId == HBContext.AdminUser) + if(userId == InternalTag.AdminUser) throw new ApiModels.ArgumentException("Cannot delete the admin user"); using var db = dbFactory.CreateDbContext(); |
