Add owner role and admin management controls
This commit is contained in:
@@ -12,7 +12,7 @@ public record ResultsOpenRequest(bool ResultsOpen);
|
||||
|
||||
public record VoteFinalizeRequest(bool Final);
|
||||
|
||||
public record VoteStatusDto(Guid PlayerId, string Name, string Username, Phase Phase, bool Finalized, bool HasJoker, int SuggestionCount, IReadOnlyList<string> SuggestionTitles);
|
||||
public record VoteStatusDto(Guid PlayerId, string Name, string Username, Phase Phase, bool Finalized, bool HasJoker, bool IsAdmin, bool IsOwner, int SuggestionCount, IReadOnlyList<string> SuggestionTitles);
|
||||
|
||||
public record LinkSuggestionsRequest(int SourceSuggestionId, int TargetSuggestionId);
|
||||
|
||||
@@ -21,5 +21,6 @@ public record UnlinkSuggestionsRequest(int SuggestionId);
|
||||
public record GrantJokerRequest(Guid PlayerId);
|
||||
|
||||
public record SetPlayerPhaseRequest(Guid PlayerId, Phase Phase);
|
||||
public record SetPlayerAdminRequest(Guid PlayerId, bool IsAdmin);
|
||||
|
||||
public record AdminPasswordRequest(string Password);
|
||||
|
||||
@@ -25,6 +25,7 @@ public record AdminResultsStateResponse(bool ResultsOpen, DateTimeOffset Updated
|
||||
public record AdminGrantJokerResponse(Guid Id, bool HasJoker);
|
||||
|
||||
public record AdminSetPlayerPhaseResponse(Guid PlayerId, Phase CurrentPhase, bool VotesFinal);
|
||||
public record AdminSetPlayerAdminResponse(Guid PlayerId, bool IsAdmin);
|
||||
|
||||
public record AdminDeletePlayerResponse(Guid DeletedPlayerId);
|
||||
|
||||
@@ -58,6 +59,7 @@ public record ResultItemDto(
|
||||
);
|
||||
|
||||
public record AuthSessionResponse(Guid Id, string Username, string? DisplayName, bool IsAdmin);
|
||||
public record AuthOptionsResponse(bool OwnerExists);
|
||||
|
||||
public record StateSummaryResponse(
|
||||
Phase CurrentPhase,
|
||||
@@ -75,6 +77,7 @@ public record MeResponse(
|
||||
string Username,
|
||||
string? DisplayName,
|
||||
bool IsAdmin,
|
||||
bool IsOwner,
|
||||
Phase CurrentPhase,
|
||||
bool VotesFinal,
|
||||
bool HasJoker
|
||||
|
||||
Reference in New Issue
Block a user