Allowed doc access for uploader

This commit is contained in:
Rick Falkvinge
2018-02-19 05:11:53 +01:00
parent a8610f84dc
commit d46eaf03e6
+8 -1
View File
@@ -38,11 +38,18 @@ namespace Swarmops.Pages.v5.Support
bool hasPermission = false;
string serverFileName = document.ServerFileName;
if (document.UploadedByPersonId == this.CurrentAuthority.Person.Identity)
{
hasPermission = true; // can always view documents you yourself uploaded
}
if (CurrentOrganization.HasOpenLedgers)
{
hasPermission = true;
}
else
if (!hasPermission)
{