Skip to content

Commit

Permalink
delete useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
yubonluo committed Mar 20, 2024
1 parent 29236e3 commit 22323c1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@ export class WorkspaceSavedObjectsClientWrapper {
} catch (e) {
return false;
}
const adminGroups = config?.dashboardAdmin?.groups || [];
const adminUsers = config?.dashboardAdmin?.users || [];
const groupMatchAny = groups?.some((group) => adminGroups.includes(group)) || false;
const userMatchAny = users?.some((user) => adminUsers.includes(user)) || false;
const adminGroups = config.dashboardAdmin?.groups || [];
const adminUsers = config.dashboardAdmin?.users || [];
const groupMatchAny = groups.some((group) => adminGroups.includes(group)) || false;
const userMatchAny = users.some((user) => adminUsers.includes(user)) || false;
return groupMatchAny || userMatchAny;
}

Expand Down

0 comments on commit 22323c1

Please sign in to comment.