mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 18:35:58 +08:00
fix: remove curr user in webapp permission api
This commit is contained in:
parent
2af1dd6de3
commit
e52a9fbfb7
@ -1,7 +1,6 @@
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from flask import request
|
from flask import request
|
||||||
from flask_login import current_user
|
|
||||||
from flask_restful import Resource, marshal_with, reqparse # type: ignore
|
from flask_restful import Resource, marshal_with, reqparse # type: ignore
|
||||||
|
|
||||||
from controllers.common import fields
|
from controllers.common import fields
|
||||||
@ -85,7 +84,6 @@ class AppWebAuthPermission(Resource):
|
|||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
app_id = args["appId"]
|
app_id = args["appId"]
|
||||||
user_id = current_user.id
|
|
||||||
logging.info(f"App ID: {app_id}, User ID: {user_id}")
|
logging.info(f"App ID: {app_id}, User ID: {user_id}")
|
||||||
|
|
||||||
app_code = AppService.get_app_code_by_id(app_id)
|
app_code = AppService.get_app_code_by_id(app_id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user