♻️ No idea, but errors all gone
This commit is contained in:
		| @@ -1,5 +1,5 @@ | ||||
| using DysonNetwork.Shared.Models; | ||||
| using DysonNetwork.Sphere.Permission; | ||||
| using DysonNetwork.Shared.Permission; | ||||
| using DysonNetwork.Sphere.Publisher; | ||||
| using Microsoft.AspNetCore.Authorization; | ||||
| using Microsoft.AspNetCore.Mvc; | ||||
| @@ -90,7 +90,7 @@ public class DeveloperController( | ||||
|  | ||||
|     [HttpPost("{name}/enroll")] | ||||
|     [Authorize] | ||||
|     [RequiredPermissionAttribute("global", "developers.create")] | ||||
|     [DysonNetwork.Shared.Permission.RequiredPermission("global", "developers.create")] | ||||
|     public async Task<ActionResult<Shared.Models.Publisher>> EnrollDeveloperProgram(string name) | ||||
|     { | ||||
|         if (HttpContext.Items["CurrentUser"] is not Shared.Models.Account currentUser) return Unauthorized(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user