Skip to content

Commit f46c472

Browse files
committed
fix(remote_config): make GET request public
Make the getItemPermission for remote_config GET request public by setting its type to RequiredPermissionType.none and requiresAuthentication to false. This change allows unauthenticated access to retrieve remote_config data.
1 parent dbc28df commit f46c472

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/src/registry/model_registry.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,7 @@ final modelRegistry = <String, ModelConfig<dynamic>>{
377377
requiresAuthentication: true,
378378
),
379379
getItemPermission: const ModelActionPermission(
380-
type: RequiredPermissionType.specificPermission,
381-
permission: Permissions.remoteConfigRead,
380+
type: RequiredPermissionType.none,
382381
requiresAuthentication: false, // Make remote_config GET public
383382
),
384383
postPermission: const ModelActionPermission(

0 commit comments

Comments
 (0)