Workshop - Add ability to mark entry as default (admin only)

Workshop - Allow editing other user's entries (admin only)
Workshop - Show last update date in entry list instead of creation date
This commit is contained in:
Robert committed 2025-04-19 11:37:28 +02:00
1 parent 10a10b9149
commit 3caf782d8e
13 files changed
+69 -23

No files matched your search

@@ -26,6 +26,10 @@ fragment submittedEntry on Entry {
entryType
downloads
createdAt
isDefault
latestRelease {
...release
}
}
fragment entrySummary on Entry {
@@ -38,6 +42,9 @@ fragment entrySummary on Entry {
downloads
createdAt
latestReleaseId
latestRelease {
...release
}
categories {
...category
}
@@ -283,6 +283,12 @@ internal class AuthenticationService : CorePropertyChanged, IAuthenticationServi
return emailVerified?.Value.ToLower() == "true";
}
/// <inheritdoc />
public List<string> GetRoles()
{
return Claims.Where(c => c.Type == JwtClaimTypes.Role).Select(c => c.Value).ToList();
}
private async Task<bool> InternalAutoLogin(bool force = false)
{
if (!force && _isLoggedInSubject.Value)
@@ -15,4 +15,5 @@ public interface IAuthenticationService : IProtectedArtemisService
Task Login(CancellationToken cancellationToken);
Task Logout();
bool GetIsEmailVerified();
List<string> GetRoles();
}