add appropriate filtering for SSH key list
- fix osusers.views.ListSshPublicKeys - add changelog entry
This commit is contained in:
parent
13160b522d
commit
dd38edd498
2 changed files with 6 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
||||||
Changelog
|
Changelog
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
* :bug:`-` the ssh key list does not show SSH keys of other users anymore
|
||||||
|
|
||||||
* :release:`0.11.2 <2015-02-06>`
|
* :release:`0.11.2 <2015-02-06>`
|
||||||
* :bug:`-` fix wrong variable name in
|
* :bug:`-` fix wrong variable name in
|
||||||
managemails.models.MailAddress.set_forward_addresses and typo in
|
managemails.models.MailAddress.set_forward_addresses and typo in
|
||||||
|
|
|
@ -107,6 +107,10 @@ class ListSshPublicKeys(
|
||||||
model = SshPublicKey
|
model = SshPublicKey
|
||||||
context_object_name = 'keys'
|
context_object_name = 'keys'
|
||||||
|
|
||||||
|
def get_queryset(self):
|
||||||
|
return SshPublicKey.objects.filter(
|
||||||
|
user=self.get_hosting_package().osuser)
|
||||||
|
|
||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
context = super(ListSshPublicKeys, self).get_context_data(**kwargs)
|
context = super(ListSshPublicKeys, self).get_context_data(**kwargs)
|
||||||
context.update({
|
context.update({
|
||||||
|
|
Loading…
Reference in a new issue