fix 增加权限控制

This commit is contained in:
2024-03-19 12:06:13 +08:00
parent 793a3325f2
commit e78ab0baea
2 changed files with 3 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ using Microsoft.AspNetCore.Mvc;
namespace Dlhis.Basic.Device.Controllers; namespace Dlhis.Basic.Device.Controllers;
[Authorize] [Authorize(Roles = "admin,tenant-admin")]
[Route("api/[controller]")] [Route("api/[controller]")]
[ApiController] [ApiController]
public class DevicePermissionsController : ControllerBase public class DevicePermissionsController : ControllerBase

View File

@@ -68,7 +68,7 @@ public class DishesMenuService : IDishesMenuService
Type = CanteenApplicaitonTypeEnumType.Booking, Type = CanteenApplicaitonTypeEnumType.Booking,
Version = 0, Version = 0,
Enable = false, Enable = true,
}; };
}); });
}); });