mirror of
https://github.com/andwati/zitadel.git
synced 2026-12-02 08:58:52 +00:00
fix: usergrant update (#533)
* fix: add grantid on update usergrant * fix: add grantid on update usergrant
This commit is contained in:
@@ -31,4 +31,3 @@ cockroachdb/cockroach:v19.2.2 start --insecure
|
|||||||
|
|
||||||
#### Should show eventstore, management, admin, auth
|
#### Should show eventstore, management, admin, auth
|
||||||
`show databases;`
|
`show databases;`
|
||||||
|
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ func userGrantUpdateToModel(u *management.UserGrantUpdate) *grant_model.UserGran
|
|||||||
return &grant_model.UserGrant{
|
return &grant_model.UserGrant{
|
||||||
ObjectRoot: models.ObjectRoot{AggregateID: u.Id},
|
ObjectRoot: models.ObjectRoot{AggregateID: u.Id},
|
||||||
RoleKeys: u.RoleKeys,
|
RoleKeys: u.RoleKeys,
|
||||||
|
GrantID: u.GrantId,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1605
-1596
File diff suppressed because it is too large
Load Diff
@@ -2526,6 +2526,7 @@ message UserGrantUpdate {
|
|||||||
string user_id = 1;
|
string user_id = 1;
|
||||||
string id = 2;
|
string id = 2;
|
||||||
repeated string role_keys = 3;
|
repeated string role_keys = 3;
|
||||||
|
string grant_id = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message UserGrantRemoveBulk {
|
message UserGrantRemoveBulk {
|
||||||
|
|||||||
Reference in New Issue
Block a user