Skip to content

Commit

Permalink
feat: add export permission (#5841)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouhaoJiang authored Jul 2, 2024
1 parent 598e030 commit 59ad091
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/controllers/console/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ class AppExportApi(Resource):
@get_app_model
def get(self, app_model):
"""Export app"""
# The role of the current user in the ta table must be admin, owner, or editor
if not current_user.is_editor:
raise Forbidden()

app_service = AppService()

return {
Expand Down

0 comments on commit 59ad091

Please sign in to comment.