Fixed security on Change Organizations

This commit is contained in:
Rick Falkvinge
2015-03-05 12:45:28 +01:00
parent 8857c6eb75
commit 3dea0efc3d
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using Swarmops.Logic.Security;
using Swarmops.Logic.Support;
using Swarmops.Logic.Swarm;
@@ -16,6 +17,15 @@ namespace Swarmops.Frontend.Pages.v5.Security
InfoBoxLiteral = Resources.Pages.Security.ChangeOrganizations_Info;
this.LabelNoOrganizations.Text = Resources.Pages.Security.ChangeOrganizations_NothingToChange;
PageAccessRequired = new Access (AccessAspect.Null, AccessType.Unknown);
if (CurrentUser.Identity < 0)
{
// We're logged on as open-something
Response.Redirect ("/"); // back to dashboard
}
PopulateRepeater();
}