Restrict comments to registered users, but keep event list public

I’m building an app where anyone should be able to see the list of events, but only registered users can leave comments.

Here’s how I want it to work:

  • Event list: Public (visible to everyone).
  • Adding comments in the comments section: Only available to logged-in users.
    → Ideally, if a non-registered user tries to comment, they should see a prompt to log in or register.

Could you let me know if this is possible in Glide (free plan) and the best way to set it up?
I have a free plan now.

Thanks a lot.

You could try the following:

Set up your comments section with a container and inside this container a collection of comments and components that will allows actions/workflows (such as a button). Now set a visibility condition on the container that will display the container if user email (or row ID if you set those up in the Users table) is not empty.

Anonymous users can not comment anyway, they disable it by default.

@ThinhDinh - I get it that anonymous users cannot comment, but they also can’t view the app, correct?
What I want to achieve is that:

  1. Anyone (anonymous or logged in) can view the app.
  2. Only logged-in users can add comments

Make your app public with optional sign in.

2 Likes

As Jeff suggested, make your app public with optional sign in means anonymous users can view content where you allow them to.

They’re not allowed to comment when not logged in using the native comments component, unless you ditch the native add method and use a form for that.

1 Like