Skip to content

Commit

Permalink
Fix: querybook edit access issue (#1444)
Browse files Browse the repository at this point in the history
* fix querybook edit

* fix: querybook edit access issue
  • Loading branch information
zhangvi7 authored Apr 30, 2024
1 parent 80a9eee commit 29fdf95
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,6 @@ export const DataDocViewersList: React.FunctionComponent<
dispatch(addDataDocAccessRequest(dataDoc.id));
}, [dataDoc.id]);

const viewerInfosToShow = dataDoc.public
? viewerInfos.filter(
(viewer) => viewer.permission !== Permission.CAN_READ
)
: viewerInfos;

const combinedClassname = clsx({
[className]: className,
DataDocViewersList: true,
Expand Down Expand Up @@ -127,7 +121,7 @@ export const DataDocViewersList: React.FunctionComponent<
onPublicToggle={onTabSelect}
onAccessRequest={handleDataDocAccessRequest}
onUserSelect={onUserSelect}
infoToShow={viewerInfosToShow}
infoToShow={viewerInfos}
onPermissionChange={onPermissionChange}
accessRequestsByUid={accessRequestsByUid}
onRemoveEditor={onRemoveEditor}
Expand Down

0 comments on commit 29fdf95

Please sign in to comment.