1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #13437: Display bookmark button only for relevant objects

This commit is contained in:
Jeremy Stretch
2023-08-10 13:55:03 -04:00
parent 89d8f7aa70
commit 856cc0f885

View File

@ -60,7 +60,7 @@ Context:
{# Extra buttons #}
{% block extra_controls %}{% endblock %}
{% if perms.extras.add_bookmark %}
{% if perms.extras.add_bookmark and object.bookmarks %}
{% bookmark_button object %}
{% endif %}
{% if request.user|can_add:object %}