|
|
|
@ -8,6 +8,7 @@ from werkzeug.exceptions import Forbidden
|
|
|
|
from controllers.console.app.wraps import get_app_model
|
|
|
|
from controllers.console.app.wraps import get_app_model
|
|
|
|
from controllers.console.wraps import (
|
|
|
|
from controllers.console.wraps import (
|
|
|
|
account_initialization_required,
|
|
|
|
account_initialization_required,
|
|
|
|
|
|
|
|
cloud_edition_billing_resource_check,
|
|
|
|
setup_required,
|
|
|
|
setup_required,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
from extensions.ext_database import db
|
|
|
|
from extensions.ext_database import db
|
|
|
|
@ -23,6 +24,7 @@ class AppImportApi(Resource):
|
|
|
|
@login_required
|
|
|
|
@login_required
|
|
|
|
@account_initialization_required
|
|
|
|
@account_initialization_required
|
|
|
|
@marshal_with(app_import_fields)
|
|
|
|
@marshal_with(app_import_fields)
|
|
|
|
|
|
|
|
@cloud_edition_billing_resource_check("apps")
|
|
|
|
def post(self):
|
|
|
|
def post(self):
|
|
|
|
# Check user role first
|
|
|
|
# Check user role first
|
|
|
|
if not current_user.is_editor:
|
|
|
|
if not current_user.is_editor:
|
|
|
|
|