This commit is contained in:
王炜翔 2025-02-09 20:59:28 +08:00
parent c2908c982b
commit 178f47a122

View File

@ -74,7 +74,7 @@ namespace asg_form.Controllers
[Authorize]
[Route("api/v1/admin/Events")]
[HttpPut]
public async Task<ActionResult<List<T_events>>> putevent(int eventId, string isRuleChange="0", [FromBody] T_events_debug events)
public async Task<ActionResult<List<T_events>>> putevent(int eventId, string isRuleChange, [FromBody] T_events_debug events)
{
if (this.User.FindAll(ClaimTypes.Role).Any(a => a.Value == "admin"))