make sure user is a superuser before showing upgrade notification

This commit is contained in:
Nick Sweeting 2023-12-19 10:03:04 -08:00 committed by GitHub
parent bfebc23f42
commit bfcff2f78f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -142,7 +142,7 @@
</div>
<script>
{% if user.is_authenticated and CAN_UPGRADE %}
{% if user.is_authenticated and user.is_superuser and CAN_UPGRADE %}
if (!localStorage.getItem("bannerDismissed")) {
const upgradeVersionTag = "{{VERSIONS_AVAILABLE.recommended_version.tag_name}}"
const upgradeVersionURL = "{{VERSIONS_AVAILABLE.recommended_version.html_url}}"