Commit 00026833 authored by Janis Streib's avatar Janis Streib 🦉
Browse files

FIX: correct permission

parent aa0931d5
......@@ -10,7 +10,7 @@ from . import apliste
def get_data():
user = request.environ['beaker.session']['login']
if not user.has_permission('nd.global_reader'):
if not user.has_permission('nd.ro_user'):
return abort(400)
data = requests.get('{url}/json'.format(url=app.config.get('APLISTE_SERVER_URL')),
cert=(app.config.get('APLISTE_CERT'), app.config.get('APLISTE_KEY'))).json()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment