asr/plugins/auth.py

10 lines
276 B
Python
Raw Normal View History

2024-08-03 17:27:14 +08:00
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