summaryrefslogtreecommitdiff
path: root/Controllers/ApiUserController.cs
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2026-06-21 21:02:44 +1000
committerJake Mannens <jake@asger.xyz>2026-06-25 12:26:07 +1000
commit713867bbda8322a0938d6b8f0c850752622fdd42 (patch)
tree1f8c4e58480471aecdee37e3f734c4c1211e16b1 /Controllers/ApiUserController.cs
parent79d383f6f48df0078e6ba13239f9c4c94fbc9ea6 (diff)
Diffstat (limited to 'Controllers/ApiUserController.cs')
-rw-r--r--Controllers/ApiUserController.cs2
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();