fix: set default webapp permission

This commit is contained in:
GareArc 2025-06-09 15:08:40 +09:00
parent ede078c522
commit 777cb06c38
No known key found for this signature in database
1 changed files with 4 additions and 0 deletions

View File

@ -89,6 +89,10 @@ class AppWebAuthPermission(Resource):
except Exception as e:
pass
features = FeatureService.get_system_features()
if not features.webapp_auth.enabled:
return {"result": True}
parser = reqparse.RequestParser()
parser.add_argument("appId", type=str, required=True, location="args")
args = parser.parse_args()