Commits (1)
......@@ -10,7 +10,7 @@ from . import apliste
@api_login_required
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()
......