add appropriate filtering for SSH key list

- fix osusers.views.ListSshPublicKeys
- add changelog entry
This commit is contained in:
Jan Dittberner 2015-02-21 20:28:26 +01:00
parent 13160b522d
commit dd38edd498
2 changed files with 6 additions and 0 deletions

View file

@ -1,6 +1,8 @@
Changelog
=========
* :bug:`-` the ssh key list does not show SSH keys of other users anymore
* :release:`0.11.2 <2015-02-06>`
* :bug:`-` fix wrong variable name in
managemails.models.MailAddress.set_forward_addresses and typo in

View file

@ -107,6 +107,10 @@ class ListSshPublicKeys(
model = SshPublicKey
context_object_name = 'keys'
def get_queryset(self):
return SshPublicKey.objects.filter(
user=self.get_hosting_package().osuser)
def get_context_data(self, **kwargs):
context = super(ListSshPublicKeys, self).get_context_data(**kwargs)
context.update({