File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
store/reducers/capabilities Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 11import type { Capability , MetaCapability , SecuritySetting } from '../../../types/api/capabilities' ;
2+ import { uiFactory } from '../../../uiFactory/uiFactory' ;
23import { useTypedSelector } from '../../../utils/hooks' ;
34import { useDatabaseFromQuery } from '../../../utils/hooks/useDatabaseFromQuery' ;
45
@@ -87,7 +88,7 @@ export const useStreamingAvailable = () => {
8788 return useGetFeatureVersion ( '/viewer/query' ) >= 8 ;
8889} ;
8990export const useEditAccessAvailable = ( ) => {
90- return useGetFeatureVersion ( '/viewer/acl' ) >= 2 ;
91+ return useGetFeatureVersion ( '/viewer/acl' ) >= 2 && ! uiFactory . hideGrantAccess ;
9192} ;
9293
9394export const useTopicDataAvailable = ( ) => {
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ export interface UIFactory<H extends string = CommonIssueType> {
4141 countHealthcheckIssuesByType : ( issueTrees : IssuesTree [ ] ) => Record < H , number > ;
4242 } ;
4343 hasAccess ?: boolean ;
44+ hideGrantAccess ?: boolean ;
4445 yaMetricaMap ?: Record < string , number > ;
4546
4647 useDatabaseId ?: boolean ;
You can’t perform that action at this time.
0 commit comments