diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2018-01-03 03:29:53 +0100 |
---|---|---|
committer | Angel Velásquez <angvp@archlinux.org> | 2018-01-02 21:29:53 -0500 |
commit | b133869cc9a65be49f15ec90929f189c701e87e1 (patch) | |
tree | 050aef8c9a15f962d9b46cafc8c78012b6d7ece4 /mirrors/views | |
parent | 5538aa8799788e19a1691bd3c2e889bb088e654b (diff) | |
download | archweb-b133869cc9a65be49f15ec90929f189c701e87e1.tar.gz archweb-b133869cc9a65be49f15ec90929f189c701e87e1.zip |
mirrors/views/api: Fix mirrors.change_mirror perm typo (#74)
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'mirrors/views')
-rw-r--r-- | mirrors/views/api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mirrors/views/api.py b/mirrors/views/api.py index df1df265..068b70dd 100644 --- a/mirrors/views/api.py +++ b/mirrors/views/api.py @@ -94,7 +94,7 @@ def mirror_details_json(request, name): data = status_info.copy() data['version'] = 4 data['details'] = mirror.get_full_url() - if authorized and request.user.has_perm('mirror.change_mirror'): + if authorized and request.user.has_perm('mirrors.change_mirror'): data['admin_email'] = mirror.admin_email data['alternate_email'] = mirror.alternate_email to_json = json.dumps(data, ensure_ascii=False, |