mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-16 11:35:59 +02:00
make sure user is a superuser before showing upgrade notification
This commit is contained in:
@@ -142,7 +142,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
{% if user.is_authenticated and CAN_UPGRADE %}
|
{% if user.is_authenticated and user.is_superuser and CAN_UPGRADE %}
|
||||||
if (!localStorage.getItem("bannerDismissed")) {
|
if (!localStorage.getItem("bannerDismissed")) {
|
||||||
const upgradeVersionTag = "{{VERSIONS_AVAILABLE.recommended_version.tag_name}}"
|
const upgradeVersionTag = "{{VERSIONS_AVAILABLE.recommended_version.tag_name}}"
|
||||||
const upgradeVersionURL = "{{VERSIONS_AVAILABLE.recommended_version.html_url}}"
|
const upgradeVersionURL = "{{VERSIONS_AVAILABLE.recommended_version.html_url}}"
|
||||||
|
Reference in New Issue
Block a user