From 6b2b558bf4f57eb51eb81546138992e45027d963 Mon Sep 17 00:00:00 2001 From: b1ackd0t Date: Tue, 11 Jul 2023 14:46:33 +0300 Subject: [PATCH] Update things/clients/service.go Co-authored-by: Sammy Kerata Oina <44265300+SammyOina@users.noreply.github.com> --- things/clients/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/things/clients/service.go b/things/clients/service.go index fdecf80086d..8d99dd06cc6 100644 --- a/things/clients/service.go +++ b/things/clients/service.go @@ -113,7 +113,7 @@ func (svc service) ListClients(ctx context.Context, token string, pm mfclients.P pm.Owner = userID } - case err != nil: + default: // If the user is not admin, check 'sharedby' parameter from page metadata. // If user provides 'sharedby' key, fetch things from policies. Otherwise, // fetch things from the database based on thing's 'owner' field.