Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33514796
D14219.1769066243.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D14219.1769066243.diff
View Options
diff --git a/services/identity/src/grpc_services/authenticated.rs b/services/identity/src/grpc_services/authenticated.rs
--- a/services/identity/src/grpc_services/authenticated.rs
+++ b/services/identity/src/grpc_services/authenticated.rs
@@ -935,13 +935,6 @@
request: tonic::Request<UpdateDeviceListRequest>,
) -> Result<Response<Empty>, tonic::Status> {
let (user_id, device_id) = get_user_and_device_id(&request)?;
- self
- .verify_device_on_device_list(
- &user_id,
- &device_id,
- DeviceListItemKind::Primary,
- )
- .await?;
let is_new_flow_user = self
.db_client
@@ -953,7 +946,14 @@
let update = DeviceListUpdate::try_from(new_list)?;
let validator = if is_new_flow_user {
- // regular device list update
+ // Regular device list update. Issuer must be the primary device.
+ self
+ .verify_device_on_device_list(
+ &user_id,
+ &device_id,
+ DeviceListItemKind::Primary,
+ )
+ .await?;
Some(crate::device_list::validation::update_device_list_rpc_validator)
} else {
// new flow migration
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 22, 7:17 AM (19 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5973713
Default Alt Text
D14219.1769066243.diff (1 KB)
Attached To
Mode
D14219: [identity] Allow migration for non-primary device
Attached
Detach File
Event Timeline
Log In to Comment