Jump to content

How can a "preview" user log out?


theo
 Share

Recommended Posts

Hi

I have a preview user with a preview role, meaning he can only view but not edit pages (Maintenance Mode).

How can he log out? (e.g. if he would like to log in with an editor role later).

pwprevuser.png.2729f58cc106e3695de6013d3c1fd006.png

Afaics, he cannot do anything from here except clicking "Continue" to view the site.

Even if I give him "profile-edit" permission, he doesn't see anything but this.

I know he could clear browser data, but there should be an official way to log out.

Is there a way?

Thank you.

Link to comment
Share on other sites

Hello

Can anybody help me with this?

I have the impression that Ryan does not understand me (see issue tracker link above).

I don't need a new function, it is all there, but hidden (for a reason?) in AdminThemeUikit.

If I add one line in wire/modules/AdminTheme/AdminThemeUikit/uikit/dist/css/uikit.pw.min.css

ul.uk-nav-sub {
  padding: 5px 0 5px 0;
  display:block !important; /*theo*/
}

then the options that I need (mainly Logout) show up nicely in mobile mode:

uikit-login.png.9f5a8f1e0b393d321e0df9bf828470e4.png

But why are they hidden in AdminThemeUikit? They are visible in AdminThemeDefault.

From Ryan's response in the tracker, I guess he thinks that I want something special or "wrong".

But I would just like to make visible what is already there for good reasons.

Can anybody explain what is wrong with this?

Thank you.

Link to comment
Share on other sites

Ha! I feel like Sherlock Holmes now! ;)

There IS a way to do what I need without CSS tweaking or installing hooks.

It is just very hidden. Probably not even Ryan knows about it. ;)

In Modules -> Configure -> AdminThemeUikit under "Masthead and Navigation" change "Masthead logo click action" to "Open offcanvas navigation".

Then, as "preview" user click the PW logo (top-left corner), then click your login name, and then you will see "Logout" and "View site" links.

It works, but I think it should be more visible.

 

prevlogout1.thumb.png.a35562739be111856c3008e01b0bacb2.png

prevlogout2.png.2f9fa091c8e18688da52636559443560.png

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...