mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-11 15:56:05 -07:00
fixed #670
This commit is contained in:
parent
d5127073bc
commit
cb11267fd2
2 changed files with 3 additions and 3 deletions
|
@ -266,7 +266,7 @@ namespace PlexRequests.Core
|
||||||
|
|
||||||
private Permissions GetPermissions(IUserIdentity user)
|
private Permissions GetPermissions(IUserIdentity user)
|
||||||
{
|
{
|
||||||
return GetPermissions(user.UserName);
|
return GetPermissions(user?.UserName);
|
||||||
}
|
}
|
||||||
|
|
||||||
private Permissions GetPermissions(string userName)
|
private Permissions GetPermissions(string userName)
|
||||||
|
|
|
@ -33,11 +33,11 @@ namespace PlexRequests.UI.Modules
|
||||||
{
|
{
|
||||||
if (settings.EnableCustomDonationUrl)
|
if (settings.EnableCustomDonationUrl)
|
||||||
{
|
{
|
||||||
return Response.AsJson(new { url = settings.CustomDonationUrl, message = settings.CustomDonationMessage });
|
return Response.AsJson(new { url = settings.CustomDonationUrl, message = settings.CustomDonationMessage, enabled = true });
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return Response.AsJson(new { url = settings.CustomDonationUrl, message = settings.CustomDonationMessage });
|
return Response.AsJson(new { enabled = false });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue