1
This commit is contained in:
parent
c2908c982b
commit
178f47a122
@ -74,7 +74,7 @@ namespace asg_form.Controllers
|
|||||||
[Authorize]
|
[Authorize]
|
||||||
[Route("api/v1/admin/Events")]
|
[Route("api/v1/admin/Events")]
|
||||||
[HttpPut]
|
[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"))
|
if (this.User.FindAll(ClaimTypes.Role).Any(a => a.Value == "admin"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user