mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-07 21:51:13 -07:00
Fixed the issue when enabling the Hide Request Users included system users e.g. API key user #2232
This commit is contained in:
parent
48faf65d4b
commit
2b227e7201
2 changed files with 3 additions and 1 deletions
|
@ -110,7 +110,7 @@ namespace Ombi.Core.Engine
|
||||||
protected async Task<HideResult> HideFromOtherUsers()
|
protected async Task<HideResult> HideFromOtherUsers()
|
||||||
{
|
{
|
||||||
var user = await GetUser();
|
var user = await GetUser();
|
||||||
if (await IsInRole(OmbiRoles.Admin) || await IsInRole(OmbiRoles.PowerUser))
|
if (await IsInRole(OmbiRoles.Admin) || await IsInRole(OmbiRoles.PowerUser) || user.IsSystemUser)
|
||||||
{
|
{
|
||||||
return new HideResult
|
return new HideResult
|
||||||
{
|
{
|
||||||
|
|
|
@ -37,6 +37,8 @@ namespace Ombi.Store.Entities
|
||||||
[NotMapped]
|
[NotMapped]
|
||||||
public bool EmailLogin { get; set; }
|
public bool EmailLogin { get; set; }
|
||||||
|
|
||||||
|
[NotMapped] public bool IsSystemUser => UserType == UserType.SystemUser;
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public override string PasswordHash
|
public override string PasswordHash
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue