Enabled Participant Financials

This commit is contained in:
Rick Falkvinge
2015-04-02 15:28:03 +02:00
parent a0f320a515
commit bd3bc13388
3 changed files with 45 additions and 1 deletions
+10
View File
@@ -1128,6 +1128,16 @@ namespace Swarmops.Logic.Swarm
return true;
}
if (access.Aspect == AccessAspect.Financials && access.Type == AccessType.Read)
{
if (access.Organization.ParticipantFinancialsEnabled)
{
// This organization has decided to open its financial reports to all participants. Reselect the access request to "participant" level.
access = new Access (access.Organization, AccessAspect.Participant);
}
}
if (access.Aspect == AccessAspect.Participant)
{
// Check that a membership (or whatever this org calls it) exists, for this org or a parentline org