Logged in Members

Is there any way to check if there are any users of type Member or Admin logged on to the site? I need it to see when I can Publish a new version of my forms and I don´t want to change them underneath their very hands.

Hi Giri,

Yes, you can get a user’s role by from the user object.
See the documentation here

In addition, you can get the view mode , which is always either ‘Preview’ or ‘Site’ and make a special exception for preview mode and thus simulating a non admin user browsing your site.