mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-21 17:56:39 +00:00
Enable deletion of integration resources (#1294)
* Enforce admin service user role for integration group deletion Added a check to prevent non-admin service users from deleting integration groups. * Restrict deletion of integration user to admin service user only * Refactor user and group deletion tests
This commit is contained in:
@@ -508,7 +508,7 @@ func TestUser_DeleteUser_regularUser(t *testing.T) {
|
||||
name: "Delete integration regular user permission denied ",
|
||||
userID: "user4",
|
||||
assertErrFunc: assert.Error,
|
||||
assertErrMessage: "only integration can delete this user",
|
||||
assertErrMessage: "only admin service user can delete this user",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user