From 2e2e31337adb4dc938eb4d963ec9fcc6a99daf55 Mon Sep 17 00:00:00 2001 From: grossmj Date: Tue, 1 Jun 2021 12:55:16 +0930 Subject: [PATCH] Add description for user permission. --- gns3server/db/repositories/rbac.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gns3server/db/repositories/rbac.py b/gns3server/db/repositories/rbac.py index f8862a8f..98c159c6 100644 --- a/gns3server/db/repositories/rbac.py +++ b/gns3server/db/repositories/rbac.py @@ -313,6 +313,7 @@ class RbacRepository(BaseRepository): # Create a new permission with full rights new_permission = schemas.PermissionCreate( + description=f"Allow access to project {path}", methods=[HTTPMethods.get, HTTPMethods.head, HTTPMethods.post, HTTPMethods.put, HTTPMethods.delete], path=path, action=PermissionAction.allow