File tree Expand file tree Collapse file tree
src/authz-module/libraries-manager Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import AddNewTeamMemberTrigger from './components/AddNewTeamMemberTrigger';
1010
1111const LibrariesAuthZTeamView = ( ) => {
1212 const intl = useIntl ( ) ;
13- const { libraryId } = useLibraryAuthZ ( ) ;
13+ const { libraryId, canManageTeam } = useLibraryAuthZ ( ) ;
1414 const { data : library } = useLibrary ( libraryId ) ;
1515 const rootBradecrumb = intl . formatMessage ( messages [ 'library.authz.breadcrumb.root' ] ) || '' ;
1616 const pageTitle = intl . formatMessage ( messages [ 'library.authz.manage.page.title' ] ) ;
@@ -22,9 +22,11 @@ const LibrariesAuthZTeamView = () => {
2222 activeLabel = { pageTitle }
2323 pageTitle = { pageTitle }
2424 pageSubtitle = { libraryId }
25- actions = { [
26- < AddNewTeamMemberTrigger libraryId = { libraryId } /> ,
27- ] }
25+ actions = {
26+ canManageTeam
27+ ? [ < AddNewTeamMemberTrigger libraryId = { libraryId } /> ]
28+ : [ ]
29+ }
2830 >
2931 < Tabs
3032 variant = "tabs"
You can’t perform that action at this time.
0 commit comments