Only check a user's features for importing from reference provider (#3797)

GitOrigin-RevId: cc5a36be20c673f8941a2694eaeba80eebb4db6a
This commit is contained in:
Alf Eaton
2021-03-25 03:04:57 +00:00
committed by Copybot
parent cddb01c72b
commit ee79728bf9
14 changed files with 30 additions and 31 deletions
@@ -23,7 +23,7 @@ describe('FileTree Context Menu Flow', function() {
rootFolder={rootFolder}
projectId="123abc"
hasWritePermissions
hasFeature={() => true}
userHasFeature={() => true}
refProviders={{}}
reindexReferences={() => null}
setRefProviderEnabled={() => null}
@@ -57,7 +57,7 @@ describe('FileTree Context Menu Flow', function() {
rootFolder={rootFolder}
projectId="123abc"
hasWritePermissions={false}
hasFeature={() => true}
userHasFeature={() => true}
refProviders={{}}
reindexReferences={() => null}
setRefProviderEnabled={() => null}
@@ -40,7 +40,7 @@ describe('FileTree Create Folder Flow', function() {
rootFolder={rootFolder}
projectId="123abc"
hasWritePermissions
hasFeature={() => true}
userHasFeature={() => true}
refProviders={{}}
reindexReferences={() => null}
setRefProviderEnabled={() => null}
@@ -100,7 +100,7 @@ describe('FileTree Create Folder Flow', function() {
rootFolder={rootFolder}
projectId="123abc"
hasWritePermissions
hasFeature={() => true}
userHasFeature={() => true}
refProviders={{}}
reindexReferences={() => null}
setRefProviderEnabled={() => null}
@@ -170,7 +170,7 @@ describe('FileTree Create Folder Flow', function() {
rootFolder={rootFolder}
projectId="123abc"
hasWritePermissions
hasFeature={() => true}
userHasFeature={() => true}
refProviders={{}}
reindexReferences={() => null}
setRefProviderEnabled={() => null}
@@ -229,7 +229,7 @@ describe('FileTree Create Folder Flow', function() {
rootFolder={rootFolder}
projectId="123abc"
hasWritePermissions
hasFeature={() => true}
userHasFeature={() => true}
refProviders={{}}
reindexReferences={() => null}
setRefProviderEnabled={() => null}
@@ -39,7 +39,7 @@ describe('FileTree Delete Entity Flow', function() {
rootFolder={rootFolder}
projectId="123abc"
hasWritePermissions
hasFeature={() => true}
userHasFeature={() => true}
refProviders={{}}
reindexReferences={() => null}
setRefProviderEnabled={() => null}
@@ -153,7 +153,7 @@ describe('FileTree Delete Entity Flow', function() {
rootFolder={rootFolder}
projectId="123abc"
hasWritePermissions
hasFeature={() => true}
userHasFeature={() => true}
refProviders={{}}
reindexReferences={() => null}
setRefProviderEnabled={() => null}
@@ -207,7 +207,7 @@ describe('FileTree Delete Entity Flow', function() {
rootFolder={rootFolder}
projectId="123abc"
hasWritePermissions
hasFeature={() => true}
userHasFeature={() => true}
refProviders={{}}
reindexReferences={() => null}
setRefProviderEnabled={() => null}
@@ -51,7 +51,7 @@ describe('FileTree Rename Entity Flow', function() {
rootFolder={rootFolder}
projectId="123abc"
hasWritePermissions
hasFeature={() => true}
userHasFeature={() => true}
refProviders={{}}
reindexReferences={() => null}
setRefProviderEnabled={() => null}