From db795e45ada77fa5744bd8376798b6a1090a691b Mon Sep 17 00:00:00 2001 From: jkoberg Date: Wed, 17 May 2023 09:56:42 +0200 Subject: [PATCH] give spaceadmin delete-all-spaces Signed-off-by: jkoberg --- services/settings/pkg/store/defaults/defaults.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/services/settings/pkg/store/defaults/defaults.go b/services/settings/pkg/store/defaults/defaults.go index 3e078f65d46..abd52407d41 100644 --- a/services/settings/pkg/store/defaults/defaults.go +++ b/services/settings/pkg/store/defaults/defaults.go @@ -420,6 +420,21 @@ func generateBundleSpaceAdminRole() *settingsmsg.Bundle { }, }, }, + { + Id: DeleteAllSpacesPermissionID, + Name: DeleteAllSpacesPermissionName, + DisplayName: "Delete AllSpaces", + Description: "This permission allows to delete all spaces.", + Resource: &settingsmsg.Resource{ + Type: settingsmsg.Resource_TYPE_SYSTEM, + }, + Value: &settingsmsg.Setting_PermissionValue{ + PermissionValue: &settingsmsg.Permission{ + Operation: settingsmsg.Permission_OPERATION_DELETE, + Constraint: settingsmsg.Permission_CONSTRAINT_ALL, + }, + }, + }, { Id: SetProjectSpaceQuotaPermissionID, Name: SetProjectSpaceQuotaPermissionName,