File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -431,7 +431,10 @@ pub async fn connector_retrieve(
431
431
& auth:: AdminApiAuthWithMerchantIdFromHeader ,
432
432
& auth:: JWTAuthMerchantFromRoute {
433
433
merchant_id,
434
- required_permission : Permission :: ProfileConnectorRead ,
434
+ // This should ideally be ProfileConnectorRead, but since this API responds with
435
+ // sensitive data, keeping this as ProfileConnectorWrite
436
+ // TODO: Convert this to ProfileConnectorRead once data is masked.
437
+ required_permission : Permission :: ProfileConnectorWrite ,
435
438
} ,
436
439
req. headers ( ) ,
437
440
) ,
Original file line number Diff line number Diff line change @@ -61,8 +61,12 @@ impl PermissionGroupExt for PermissionGroup {
61
61
62
62
fn accessible_groups ( & self ) -> Vec < Self > {
63
63
match self {
64
- Self :: OperationsView => vec ! [ Self :: OperationsView ] ,
65
- Self :: OperationsManage => vec ! [ Self :: OperationsView , Self :: OperationsManage ] ,
64
+ Self :: OperationsView => vec ! [ Self :: OperationsView , Self :: ConnectorsView ] ,
65
+ Self :: OperationsManage => vec ! [
66
+ Self :: OperationsView ,
67
+ Self :: OperationsManage ,
68
+ Self :: ConnectorsView ,
69
+ ] ,
66
70
67
71
Self :: ConnectorsView => vec ! [ Self :: ConnectorsView ] ,
68
72
Self :: ConnectorsManage => vec ! [ Self :: ConnectorsView , Self :: ConnectorsManage ] ,
You can’t perform that action at this time.
0 commit comments