asr/plugins/auth.py
2024-08-03 17:27:14 +08:00

10 lines
276 B
Python

from appPublic.log import info
from ahserver.auth_api import AuthAPI
from sqlor.dbpools import DBPools
async def checkUserPermission(self, user, path):
info(f'checkUserPermission():{user} access to {path} ..')
return True
AuthAPI.checkUserPermission = checkUserPermission