# Preventing access to PRO App for maintenance

**URL:** https://community.glideapps.com/t/preventing-access-to-pro-app-for-maintenance/9187
**Category:** Ask for Help
**Created:** [May 15, 2020, 6:29am UTC](https://community.glideapps.com/t/preventing-access-to-pro-app-for-maintenance/9187 "2020-05-15T06:29:47Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ugm](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ugm/32/530_2.png) [@ugm](https://community.glideapps.com/u/ugm)
#### Post date: [May 15, 2020, 6:29am UTC](https://community.glideapps.com/t/preventing-access-to-pro-app-for-maintenance/9187/1 "2020-05-15T06:29:48Z")

</div>

I was looking for a way to prevent access to a PRO App for a short downtime for maintenance.

Here is what I am planning - My Whitelist is simple name/email list and has been kept a separate sheet. It is a result of QUERY on a MASTER List of Users.

To stop access - I was thinking of making the Whitelist a nil list by deleting the QUERY

Question: Is there another simpler method?

---

<div class="post-metadata">

### Author: ![zDesignTeam](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/zdesignteam/32/5906_2.png) [@zDesignTeam](https://community.glideapps.com/u/zDesignTeam)
#### Post date: [May 15, 2020, 3:50pm UTC](https://community.glideapps.com/t/preventing-access-to-pro-app-for-maintenance/9187/2 "2020-05-15T15:50:36Z")

</div>

You can define a “Maintenance Mode” variable on the Google Sheet and set it to TRUE when you need to active it.

Then you need to add a “Filter” on your Glide App screens/tabs/components to check for that variable, if it’s TRUE a “Maintenance Mode” message is displayed to all the users.

Let me know if you need more info about how to achieve this, so I can create a quick live example.

---

<div class="post-metadata">

### Author: ![Drearystate](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/drearystate/32/49605_2.png) [@Drearystate](https://community.glideapps.com/u/Drearystate)
#### Post date: [May 15, 2020, 4:47pm UTC](https://community.glideapps.com/t/preventing-access-to-pro-app-for-maintenance/9187/3 "2020-05-15T16:47:47Z")

</div>

I think this is the best solution actually. In the login area make a text box that pops up stating maintenance if that value is true. That’s a great idea. I do think Glide should add a toggle to the development side of the app though that we can just click if we are performing major maintenance.

---

<div class="post-metadata">

### Author: ![ugm](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ugm/32/530_2.png) [@ugm](https://community.glideapps.com/u/ugm)
#### Post date: [May 16, 2020, 8:12am UTC](https://community.glideapps.com/t/preventing-access-to-pro-app-for-maintenance/9187/4 "2020-05-16T08:12:10Z")

</div>

> [@zDesignTeam](#):
>
> Then you need to add a “Filter” on your Glide App screens/tabs/components to check for that variable, if it’s TRUE a “Maintenance Mode” message is displayed to all the users.

Thanks for the tip.  
I like the idea except for the fact that there are too many places that I will need to add the filter condition. I am now thinking of combining your idea and my suggestion by a IF(MAINTENANCE MODE,QUERY(…) ). The down side is USERs will not be able to login and wont know why? To circumvent that I will switch the LOGIN Background Image indicating MAINTENANCE in PROGRESS.

Thanks once again.
