Skip to content

Commit efc0b53

Browse files
authored
fix: allow-deleting account even if viewer role (#994)
Signed-off-by: Miguel Martinez Trivino <[email protected]>
1 parent ff83d9d commit efc0b53

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/controlplane/internal/authz/authz.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,9 @@ var ServerOperationsMap = map[string][]*Policy{
200200
"/controlplane.v1.UserService/ListMemberships": {},
201201
// Set the current organization for the current user
202202
"/controlplane.v1.UserService/SetCurrentMembership": {},
203-
// Leave the organization
203+
// Leave the organization or delete your account
204204
"/controlplane.v1.UserService/DeleteMembership": {},
205+
"/controlplane.v1.AuthService/DeleteAccount": {},
205206
}
206207

207208
type SubjectAPIToken struct {

0 commit comments

Comments
 (0)