Fix for Deny when no budget owner

This commit is contained in:
Rick Falkvinge
2016-08-14 04:54:39 +02:00
parent f3de525dc8
commit 329b63d745
+2 -1
View File
@@ -179,7 +179,8 @@ namespace Swarmops.Frontend.Pages.v5.Financial
FinancialAccount budget = payable.Budget;
if (budget.OrganizationId != authData.CurrentOrganization.Identity ||
budget.OwnerPersonId != authData.CurrentUser.Identity)
(budget.OwnerPersonId != authData.CurrentUser.Identity &&
budget.OwnerPersonId != Person.NobodyId))
{
throw new UnauthorizedAccessException();
}