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