Developer forum

Forum » Swift » Two admin buttons when switching to language layer

Two admin buttons when switching to language layer

Caro De Weze
Reply

Hi,

I recently added several language layers to my solution. When I switch languages ​​with the language switch on the frontend, I get 2 login buttons (if I have already logged in). One gives a dropdown to log in (but I am already logged in and then this is not allowed to be shown) and the other to go to my account (my account, my orders etc). Normally it should only show the second button if you are already logged in. This works perfectly on the master, but this problem occurs at all language levels. Anyone have any ideas why this happens and how I solve it? In the screen recording you can clearly see what I mean.

By the way, I'm just logged in as a customer, because if you're logged in as an administrator on the frontend, I know this is normal.

Caro


Replies

 
Merethe Vrå Andersen Dynamicweb Employee
Merethe Vrå Andersen
Reply
This post has been marked as an answer

Hi, 

Have you setup permissions for Login and Account pages?

Login page must allow anoymous users and "not allow" for Authenticated users (in order to hide it for authenticated users when not logged in).

Account page must allow authenticated users and "not allow" for anonymous users (in order to hide it for anonymous users when logged in).

https://www.screencast.com/t/gz1LrSzsfelM

Kind regards,

Merethe Vrå Andersen, QA

Votes for this answer: 1

 

You must be logged in to post in the forum