Skip to content

Commit

Permalink
Fixed view permissions for ObjectChange
Browse files Browse the repository at this point in the history
  • Loading branch information
peteeckel authored and jeremystretch committed Sep 5, 2024
1 parent 76ff329 commit 16f74f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion netbox/netbox/views/generic/feature_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class ObjectChangeLogView(ConditionalLoginRequiredMixin, View):
base_template = None
tab = ViewTab(
label=_('Changelog'),
permission='extras.view_objectchange',
permission='core.view_objectchange',
weight=10000
)

Expand Down
2 changes: 1 addition & 1 deletion netbox/templates/account/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ <h2 class="card-header">{% trans "Assigned Groups" %}</h2>
</div>
</div>
</div>
{% if perms.extras.view_objectchange %}
{% if perms.core.view_objectchange %}
<div class="row">
<div class="col-md-12">
<div class="card">
Expand Down
2 changes: 1 addition & 1 deletion netbox/templates/users/user.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ <h2 class="card-header">{% trans "Assigned Permissions" %}</h2>
</div>
</div>
</div>
{% if perms.extras.view_objectchange %}
{% if perms.core.view_objectchange %}
<div class="row">
<div class="col-md-12">
<div class="card">
Expand Down

0 comments on commit 16f74f7

Please sign in to comment.