fix 增加权限控制
This commit is contained in:
@@ -9,7 +9,7 @@ using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Dlhis.Basic.Device.Controllers;
|
||||
|
||||
[Authorize]
|
||||
[Authorize(Roles = "admin,tenant-admin")]
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
public class DevicePermissionsController : ControllerBase
|
||||
|
||||
@@ -68,7 +68,7 @@ public class DishesMenuService : IDishesMenuService
|
||||
|
||||
Type = CanteenApplicaitonTypeEnumType.Booking,
|
||||
Version = 0,
|
||||
Enable = false,
|
||||
Enable = true,
|
||||
};
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user