feat: add export permission (#5841)

pull/5852/head
Joe 2 years ago committed by GitHub
parent 598e030a7e
commit 59ad091e69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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 {

Loading…
Cancel
Save