mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 22:11:14 +02:00
Use an ACL table to check for privileges
This commit is contained in:
1 parent
6bd855b3c5
commit
60ce1172e0
30 files changed
+1195
-1423
No files matched your search
@@ -32,7 +32,7 @@ from . import images
|
||||
from . import users
|
||||
from . import groups
|
||||
from . import roles
|
||||
from . import permissions
|
||||
from . import acl
|
||||
|
||||
from .dependencies.authentication import get_current_active_user
|
||||
|
||||
@@ -56,10 +56,10 @@ router.include_router(
|
||||
)
|
||||
|
||||
router.include_router(
|
||||
permissions.router,
|
||||
acl.router,
|
||||
dependencies=[Depends(get_current_active_user)],
|
||||
prefix="/permissions",
|
||||
tags=["Permissions"]
|
||||
prefix="/acl",
|
||||
tags=["ACL"]
|
||||
)
|
||||
|
||||
router.include_router(
|
||||
|
||||
Reference in new issue
Block a user