bugfix dbcrud
This commit is contained in:
@@ -11,7 +11,7 @@ from app.core.auth import get_current_active_user,get_current_user
|
||||
from app.core.apiexception import APIException
|
||||
from app.core.common import ApiReturnModel,ApiReturnPage
|
||||
#from fastapi_pagination import Page
|
||||
from app.db.cruddb.dbdomain import dbdomain
|
||||
from app.db.cruddb import dbdomain
|
||||
|
||||
import httpx
|
||||
import app.core.config as config
|
||||
|
||||
@@ -15,7 +15,7 @@ from app.db.crud import (
|
||||
)
|
||||
from app.db.schemas import UserCreate, UserEdit, User, UserOut,RoleBase,Permission
|
||||
from app.core.auth import get_current_user,get_current_active_user, get_current_active_superuser
|
||||
from app.db.cruddb.dbuser import dbuser
|
||||
from app.db.cruddb import dbuser
|
||||
|
||||
users_router = r = APIRouter()
|
||||
|
||||
@@ -183,4 +183,4 @@ async def permssions_list(
|
||||
permissions = []
|
||||
return ApiReturnModel(data = permissions)
|
||||
except Exception as e:
|
||||
raise APIException('user:userpermssions',request.url._url,f"Error occurred while get user(){current_user.id} permissions:",e)
|
||||
raise APIException('user:userpermssions',request.url._url,f"Error occurred while get user({current_user.id}) permissions:",e)
|
||||
|
||||
Reference in New Issue
Block a user