mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
confirm user is internal to globalscale
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
parent
8ec5401e34
commit
7e31403dfa
2 changed files with 13 additions and 0 deletions
|
|
@ -110,6 +110,7 @@ class LookupPlugin implements ISearchPlugin {
|
|||
'label' => $label,
|
||||
'value' => [
|
||||
'shareType' => IShare::TYPE_REMOTE,
|
||||
'globalScale' => $isGlobalScaleEnabled,
|
||||
'shareWith' => $lookup['federationId'],
|
||||
],
|
||||
'extra' => $lookup,
|
||||
|
|
|
|||
|
|
@ -303,6 +303,7 @@ class LookupPluginTest extends TestCase {
|
|||
'label' => $fedIDs[0],
|
||||
'value' => [
|
||||
'shareType' => IShare::TYPE_REMOTE,
|
||||
'globalScale' => true,
|
||||
'shareWith' => $fedIDs[0]
|
||||
],
|
||||
'extra' => ['federationId' => $fedIDs[0]],
|
||||
|
|
@ -311,6 +312,7 @@ class LookupPluginTest extends TestCase {
|
|||
'label' => $fedIDs[1],
|
||||
'value' => [
|
||||
'shareType' => IShare::TYPE_REMOTE,
|
||||
'globalScale' => true,
|
||||
'shareWith' => $fedIDs[1]
|
||||
],
|
||||
'extra' => ['federationId' => $fedIDs[1]],
|
||||
|
|
@ -319,6 +321,7 @@ class LookupPluginTest extends TestCase {
|
|||
'label' => $fedIDs[2],
|
||||
'value' => [
|
||||
'shareType' => IShare::TYPE_REMOTE,
|
||||
'globalScale' => true,
|
||||
'shareWith' => $fedIDs[2]
|
||||
],
|
||||
'extra' => ['federationId' => $fedIDs[2]],
|
||||
|
|
@ -342,6 +345,7 @@ class LookupPluginTest extends TestCase {
|
|||
'label' => $fedIDs[0],
|
||||
'value' => [
|
||||
'shareType' => IShare::TYPE_REMOTE,
|
||||
'globalScale' => true,
|
||||
'shareWith' => $fedIDs[0]
|
||||
],
|
||||
'extra' => ['federationId' => $fedIDs[0]],
|
||||
|
|
@ -350,6 +354,7 @@ class LookupPluginTest extends TestCase {
|
|||
'label' => $fedIDs[1],
|
||||
'value' => [
|
||||
'shareType' => IShare::TYPE_REMOTE,
|
||||
'globalScale' => true,
|
||||
'shareWith' => $fedIDs[1]
|
||||
],
|
||||
'extra' => ['federationId' => $fedIDs[1]],
|
||||
|
|
@ -358,6 +363,7 @@ class LookupPluginTest extends TestCase {
|
|||
'label' => $fedIDs[2],
|
||||
'value' => [
|
||||
'shareType' => IShare::TYPE_REMOTE,
|
||||
'globalScale' => true,
|
||||
'shareWith' => $fedIDs[2]
|
||||
],
|
||||
'extra' => ['federationId' => $fedIDs[2]],
|
||||
|
|
@ -381,6 +387,7 @@ class LookupPluginTest extends TestCase {
|
|||
'label' => $fedIDs[0],
|
||||
'value' => [
|
||||
'shareType' => IShare::TYPE_REMOTE,
|
||||
'globalScale' => false,
|
||||
'shareWith' => $fedIDs[0]
|
||||
],
|
||||
'extra' => ['federationId' => $fedIDs[0]],
|
||||
|
|
@ -389,6 +396,7 @@ class LookupPluginTest extends TestCase {
|
|||
'label' => $fedIDs[1],
|
||||
'value' => [
|
||||
'shareType' => IShare::TYPE_REMOTE,
|
||||
'globalScale' => false,
|
||||
'shareWith' => $fedIDs[1]
|
||||
],
|
||||
'extra' => ['federationId' => $fedIDs[1]],
|
||||
|
|
@ -397,6 +405,7 @@ class LookupPluginTest extends TestCase {
|
|||
'label' => $fedIDs[2],
|
||||
'value' => [
|
||||
'shareType' => IShare::TYPE_REMOTE,
|
||||
'globalScale' => false,
|
||||
'shareWith' => $fedIDs[2]
|
||||
],
|
||||
'extra' => ['federationId' => $fedIDs[2]],
|
||||
|
|
@ -471,6 +480,7 @@ class LookupPluginTest extends TestCase {
|
|||
'label' => $fedIDs[0],
|
||||
'value' => [
|
||||
'shareType' => IShare::TYPE_REMOTE,
|
||||
'globalScale' => false,
|
||||
'shareWith' => $fedIDs[0]
|
||||
],
|
||||
'extra' => ['federationId' => $fedIDs[0]],
|
||||
|
|
@ -479,6 +489,7 @@ class LookupPluginTest extends TestCase {
|
|||
'label' => $fedIDs[1],
|
||||
'value' => [
|
||||
'shareType' => IShare::TYPE_REMOTE,
|
||||
'globalScale' => false,
|
||||
'shareWith' => $fedIDs[1]
|
||||
],
|
||||
'extra' => ['federationId' => $fedIDs[1]],
|
||||
|
|
@ -487,6 +498,7 @@ class LookupPluginTest extends TestCase {
|
|||
'label' => $fedIDs[2],
|
||||
'value' => [
|
||||
'shareType' => IShare::TYPE_REMOTE,
|
||||
'globalScale' => false,
|
||||
'shareWith' => $fedIDs[2]
|
||||
],
|
||||
'extra' => ['federationId' => $fedIDs[2]],
|
||||
|
|
|
|||
Loading…
Reference in a new issue