File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 88from starlette .responses import RedirectResponse
99from tortoise .exceptions import BaseORMException
1010
11- from fast_tmp .admin .site import GroupAdmin , UserAdmin
11+ from fast_tmp .admin .site import GroupAdmin , PermissionAdmin , UserAdmin
1212from fast_tmp .conf import settings
1313from fast_tmp .models import Permission , User
1414from fast_tmp .responses import BaseRes , FastTmpError
2424templates = Jinja2Templates (directory = base_path + "/templates" )
2525register_tags (templates )
2626admin = FastAPI (title = "fast-tmp" )
27- register_model_site ({"Auth" : [UserAdmin (), GroupAdmin ()]})
27+ register_model_site ({"Auth" : [UserAdmin (), GroupAdmin (), PermissionAdmin () ]})
2828admin .include_router (router )
2929
3030admin .exception_handler (FastTmpError )(fasttmp_exception_handler )
You can’t perform that action at this time.
0 commit comments