Joe месяцев назад: 4
Родитель
Сommit
c8cc31af88
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_admin_or_owner:
+        if not current_user.is_editing_role:
             raise Forbidden()
         parser = reqparse.RequestParser()
         parser.add_argument("enabled", type=bool, required=True, location="json")