Finished restricting all current pages based on the user role.