Joe 1 месяц назад
Родитель
Сommit
58f012f3de
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      api/controllers/console/app/app.py

+ 1 - 1
api/controllers/console/app/app.py

@@ -316,7 +316,7 @@ class AppTraceApi(Resource):
     @account_initialization_required
     def post(self, app_id):
         # add app trace
-        if not current_user.is_editing_role:
+        if not current_user.is_editor:
             raise Forbidden()
         parser = reqparse.RequestParser()
         parser.add_argument("enabled", type=bool, required=True, location="json")