Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have the following code as part of my Page_Init Function:

#region Page Init
        protected void Page_Init(object sender, EventArgs e)
        { 
            // check if user has access (admin or user)
            if (!AppCode.Service.Security.HasAccess(Page.User.Identity.Name, new List<AppCode.Service.Enums.ADSecurityGroup> { AppCode.Service.Enums.ADSecurityGroup.APP_Tracker_Admin }))
            {
                Response.Redirect("~Error/NotAuthorized.aspx");
            }
        }
        #endregion


Being that I am on the development side of things, I have access to the web form no matter what. Because of other factors I cannot have verified members of the security group test the webform.

My question then is: Does the code above grant access to the ADSecurityGroup.APP_Tracker_Admin group? Or does it do the exact opposite?

Thank you in advance for your response.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900