Fixed security on Change Organizations
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user