pull/733/head
Jamie.Rees 8 years ago
parent d5127073bc
commit cb11267fd2

@ -266,7 +266,7 @@ namespace PlexRequests.Core
private Permissions GetPermissions(IUserIdentity user)
{
return GetPermissions(user.UserName);
return GetPermissions(user?.UserName);
}
private Permissions GetPermissions(string userName)

@ -33,11 +33,11 @@ namespace PlexRequests.UI.Modules
{
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
{
return Response.AsJson(new { url = settings.CustomDonationUrl, message = settings.CustomDonationMessage });
return Response.AsJson(new { enabled = false });
}
}
catch (Exception e)

Loading…
Cancel
Save