# Bug with conditional access?

**URL:** <https://forum.adalo.com/t/bug-with-conditional-access/337>\
**Category:** Get Help\
**Created:** [February 27, 2020, 9:57pm UTC](https://forum.adalo.com/t/bug-with-conditional-access/337 "2020-02-27T21:57:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dave](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@dave](https://forum.adalo.com/u/dave)\
**Post date:** [February 27, 2020, 9:57pm UTC](https://forum.adalo.com/t/bug-with-conditional-access/337/1 "2020-02-27T21:57:10Z")

</div>

Trying to show content only when a user is not logged in. I have set the following:

 ![Screen Shot 2020-02-27 at 4.48.00 PM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/1X/9ed1b69f337bad3731f3ee6f1dfb3e7e6f5f0ae7.png)  
If a user is not logged in, the content does not show.

When showing content for any user that is logged in, the following settings do work:  
Visibility: Sometimes Visible  
Will be visible if:  
All Users  
Contains  
Logged in User

I would also like to use this conditional access for links as well. Example, send a user to a login page versus a profile page depending if they are already logged in.

---

<div class="post-metadata">

**Author:** ![tiffany](https://avatars.discourse-cdn.com/v4/letter/t/ec9cab/32.png) [@tiffany](https://forum.adalo.com/u/tiffany)\
**Post date:** [February 28, 2020, 12:08am UTC](https://forum.adalo.com/t/bug-with-conditional-access/337/2 "2020-02-28T00:08:15Z")

</div>

Hi Dave. I’m not sure if there’s a conditional mechanism for pages with Adalo (I don’t think so), but I’ve created what I think you’re trying to create by grouping what’s on the page and then setting the visibility of that group to sometimes visible if the logged in user --\> email --\> is not equal to --\> empty. If your users’ email is mandatory, then it will perform the same if/then function.

They would end up on an empty page, so you can also add a button or a text that says “log in” then set that visibility to sometimes if the logged in user, email, is empty. That would prompt the user to log in.

---

<div class="post-metadata">

**Author:** ![dave](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@dave](https://forum.adalo.com/u/dave)\
**Post date:** [February 28, 2020, 1:51am UTC](https://forum.adalo.com/t/bug-with-conditional-access/337/3 "2020-02-28T01:51:30Z")

</div>

Thanks for the tip. I have been able to get it to work with linking buttons. But I have not been able to get it to work if I have two groups on a page. Trying to make one component group visible to logged in users, and one group visible to users that are not logged in. I seem to be able to make it work if I apply the logic to only one group on a page. I still think it is a bug in that the logic is not working under many scenarios.

---

<div class="post-metadata">

**Author:** ![TonyD](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/tonyd/32/38_2.png) [@TonyD](https://forum.adalo.com/u/TonyD)\
**Post date:** [February 29, 2020, 12:59am UTC](https://forum.adalo.com/t/bug-with-conditional-access/337/4 "2020-02-29T00:59:46Z")

</div>

Shouldn’t it be IF Current User is Not Logged in?

---

<div class="post-metadata">

**Author:** ![dave](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@dave](https://forum.adalo.com/u/dave)\
**Post date:** [March 2, 2020, 1:59pm UTC](https://forum.adalo.com/t/bug-with-conditional-access/337/5 "2020-03-02T13:59:43Z")

</div>

That would be a great option to have!

---

<div class="post-metadata">

**Author:** ![eliorb](https://avatars.discourse-cdn.com/v4/letter/e/7993a0/32.png) [@eliorb](https://forum.adalo.com/u/eliorb)\
**Post date:** [April 11, 2020, 1:05pm UTC](https://forum.adalo.com/t/bug-with-conditional-access/337/6 "2020-04-11T13:05:23Z")

</div>

Legend! I’ve been trying to find a solution for ages. 🙏

---

<div class="post-metadata">

**Author:** ![Ben](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/ben/32/9_2.png) [@Ben](https://forum.adalo.com/u/Ben)\
**Post date:** [April 12, 2020, 11:28pm UTC](https://forum.adalo.com/t/bug-with-conditional-access/337/7 "2020-04-12T23:28:32Z")

</div>

To show content only to a user who is not logged in, set the conditional visibility to:

Logged in User\> Email  
Is Equal to  
_Empty_
