From 329b63d74542ff108f8d6ccc1d8ac7fb9b7ef75a Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sun, 14 Aug 2016 04:54:39 +0200 Subject: [PATCH] Fix for Deny when no budget owner --- Site5/Pages/v5/Financial/AttestCosts.aspx.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Site5/Pages/v5/Financial/AttestCosts.aspx.cs b/Site5/Pages/v5/Financial/AttestCosts.aspx.cs index 76730191..d65ed179 100644 --- a/Site5/Pages/v5/Financial/AttestCosts.aspx.cs +++ b/Site5/Pages/v5/Financial/AttestCosts.aspx.cs @@ -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(); }