1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 07:13:58 -05:00

require login for wildcard ip search

This commit is contained in:
RaidMax
2023-09-13 22:50:37 -05:00
parent ec6424b44f
commit 7ecbf8544a
3 changed files with 17 additions and 7 deletions

View File

@ -16,7 +16,9 @@ public class ClientResourceRequest : ClientPaginationRequest
public EFClient.Permission? ClientLevel { get; set; }
public Reference.Game? GameName { get; set; }
public bool IncludeGeolocationData { get; set; } = true;
public EFClient.Permission RequesterPermission { get; set; } = EFClient.Permission.User;
public bool HasData => !string.IsNullOrEmpty(ClientName) || !string.IsNullOrEmpty(ClientIp) ||
!string.IsNullOrEmpty(ClientGuid) || ClientLevel is not null || GameName is not null;
!string.IsNullOrEmpty(ClientGuid) || ClientLevel is not null || GameName is not null;
}