public async Task RemoveAuthority(RemoveAuthorityDto input) { var auth = Mapper.Map <AuthorityType[]>(input.AuthorizeType.Split(',')); if (auth.Length == 0) { ThrowNoDataError(); } var axis = _axisRepository.Get(input.Id); var user = await GetCurrentUserAsync(); if (!_authorityManager.IsCreatedUser(user, axis)) { Throw403Error(); } var targetUser = await _userManager.GetUserByIdAsync(input.UID); foreach (var type in auth) { _authorityManager.AssignNo(targetUser, axis, type); } }