# How to restrict content when user is not logged in?

**URL:** <https://forum.adalo.com/t/how-to-restrict-content-when-user-is-not-logged-in/7883>\
**Category:** Get Help\
**Created:** [January 13, 2021, 12:48pm UTC](https://forum.adalo.com/t/how-to-restrict-content-when-user-is-not-logged-in/7883 "2021-01-13T12:48:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zodiak](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/zodiak/32/5107_2.png) [@zodiak](https://forum.adalo.com/u/zodiak)\
**Post date:** [January 13, 2021, 12:48pm UTC](https://forum.adalo.com/t/how-to-restrict-content-when-user-is-not-logged-in/7883/1 "2021-01-13T12:48:21Z")

</div>

I’m working on a marketplace app and i want to hide the “my profile” and “add listing” tabs when the user is not logged in, and instead show a login/registration modal or page. How exactly would i do that?

---

<div class="post-metadata">

**Author:** ![Edward](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/edward/32/5822_2.png) [@Edward](https://forum.adalo.com/u/Edward)\
**Post date:** [January 13, 2021, 5:06pm UTC](https://forum.adalo.com/t/how-to-restrict-content-when-user-is-not-logged-in/7883/2 "2021-01-13T17:06:01Z")

</div>

I am not sure how your app screens are but usually there are 2 types of screens. A welcome screen which the user can see if they are not logged in and a home page which the users can see if they are logged in. On which screen do you have the navbar? Welcome or Home

---

<div class="post-metadata">

**Author:** ![zodiak](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/zodiak/32/5107_2.png) [@zodiak](https://forum.adalo.com/u/zodiak)\
**Post date:** [January 13, 2021, 5:56pm UTC](https://forum.adalo.com/t/how-to-restrict-content-when-user-is-not-logged-in/7883/3 "2021-01-13T17:56:14Z")

</div>

My welcome screen was basically just registration, now ive changed it to be the home screen and another identical homescreen for when the user is logged in. Just have to sort out some small details now. Thanks btw, didnt even think about that.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [January 23, 2021, 5:56pm UTC](https://forum.adalo.com/t/how-to-restrict-content-when-user-is-not-logged-in/7883/4 "2021-01-23T17:56:16Z")

</div>

Closed on January 23, 2021, 5:56pm UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
