forked from ddrilling/AsbCloudServer
fix admin user role forbider
This commit is contained in:
parent
4963e820c6
commit
5bb6bd4e9e
@ -20,7 +20,7 @@ namespace AsbCloudWebApi.Controllers
|
|||||||
UpdateForbidAsync = async (dto, token) =>
|
UpdateForbidAsync = async (dto, token) =>
|
||||||
{
|
{
|
||||||
var role = await service.GetOrDefaultAsync(dto.Id, token);
|
var role = await service.GetOrDefaultAsync(dto.Id, token);
|
||||||
return role?.IdType != 1;
|
return role?.IdType == 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
DeleteForbidAsync = (id, token) =>
|
DeleteForbidAsync = (id, token) =>
|
||||||
|
Loading…
Reference in New Issue
Block a user