Sfoglia il codice sorgente

feat: add export permission (#5841)

tags/0.6.13
Joe 1 anno fa
parent
commit
59ad091e69
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4
    0
      api/controllers/console/app/app.py

+ 4
- 0
api/controllers/console/app/app.py Vedi File

@@ -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…
Annulla
Salva