Allowed doc access for uploader
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user