This topic is locked
[SOLVED]

 Guest account can't view Welcome page

4/16/2019 9:38:37 AM
ASPRunner.NET General questions
Pete K author

I don't recall this being in an issue in previous versions, but I may be mistaken.
I'm on the latest build of 10.1, using Active Directory security with Guest enabled. I want my non-logged in visitors to see the Welcome page by default. There are 2 tables they have access to. My understanding of how the Welcome menu page works is that users should see the page regardless of their access permissions but should only see menus for those tables to which they have rights. However when a guest loads the app, they get dumped on the list page of the first table they have rights to rather then the Welcome page. If I force them to /menu, it redirects to that table list and they never see the Welcome page.
I don't believe this is by design, is it?

jadachDevClub member 4/16/2019

If the guest can only see one menu item, then the guest will bypass welcome page. Grant the guest another menu item and try again.

Pete K author 4/17/2019

Thanks, Jerry. You're right -- that did it. Learned something new. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=87595&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />

Pete K author 4/17/2019

For anyone interested, after adding a second table (that I really don't want Guests to see) I then removed the additional item from the welcome page by adding teh following code to the Before display event of the Welcome page:

// Hide item from non-logged in users
if ( Security.getUserName() == "Guest" )

{

pageObject.hideItem("welcome_item1");

}