Add description for user permission.

pull/1906/head
grossmj 3 years ago
parent fbc47598d9
commit 2e2e31337a

@ -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

Loading…
Cancel
Save