1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-01 04:38:12 +00:00

Add description for user permission.

This commit is contained in:
grossmj 2021-06-01 12:55:16 +09:30
parent fbc47598d9
commit 2e2e31337a

View File

@ -313,6 +313,7 @@ class RbacRepository(BaseRepository):
# Create a new permission with full rights # Create a new permission with full rights
new_permission = schemas.PermissionCreate( new_permission = schemas.PermissionCreate(
description=f"Allow access to project {path}",
methods=[HTTPMethods.get, HTTPMethods.head, HTTPMethods.post, HTTPMethods.put, HTTPMethods.delete], methods=[HTTPMethods.get, HTTPMethods.head, HTTPMethods.post, HTTPMethods.put, HTTPMethods.delete],
path=path, path=path,
action=PermissionAction.allow action=PermissionAction.allow