Skip to content

Commit

Permalink
fix left's users logout (jumpserver#446)
Browse files Browse the repository at this point in the history
* fix left's users logout

* fix issues 445
  • Loading branch information
njqaaa authored and ibuler committed May 25, 2017
1 parent 1816925 commit dd6c82b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/assets/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def get_assets_inherit_from_asset_groups(self):
for asset in asset_group.assets.all():
setattr(asset, 'is_inherit_from_asset_groups', True)
setattr(asset, 'inherit_from_asset_groups',
getattr(asset, b'inherit_from_asset_groups', set()).add(asset_group))
getattr(asset, 'inherit_from_asset_groups', set()).add(asset_group))
assets.add(asset)
return assets

Expand Down
2 changes: 1 addition & 1 deletion apps/templates/_user_profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<li><a href="{% url 'users:user-profile' %}">{% trans 'Profile' %}</a></li>
<li><a href="{% url 'users:user-profile-update' %}">{% trans 'Profile settings' %}</a></li>
<li class="divider"></li>
<li><a href="">{% trans 'Logout' %}</a></li>
<li><a href="{% url 'users:logout' %}">{% trans 'Logout' %}</a></li>
</ul>
</div>
<div class="logo-element">
Expand Down

0 comments on commit dd6c82b

Please sign in to comment.