Commits (1)
...@@ -10,7 +10,7 @@ from . import apliste ...@@ -10,7 +10,7 @@ from . import apliste
@api_login_required @api_login_required
def get_data(): def get_data():
user = request.environ['beaker.session']['login'] 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) return abort(400)
data = requests.get('{url}/json'.format(url=app.config.get('APLISTE_SERVER_URL')), 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() cert=(app.config.get('APLISTE_CERT'), app.config.get('APLISTE_KEY'))).json()
......