mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 02:15:59 +08:00
feat: add export permission (#5841)
This commit is contained in:
parent
598e030a7e
commit
59ad091e69
@ -190,6 +190,10 @@ class AppExportApi(Resource):
|
|||||||
@get_app_model
|
@get_app_model
|
||||||
def get(self, app_model):
|
def get(self, app_model):
|
||||||
"""Export app"""
|
"""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()
|
app_service = AppService()
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user