Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Maarch
maarchRM
Commits
c07a3906
Verified
Commit
c07a3906
authored
Feb 25, 2020
by
Alexandre Morin
Browse files
fix () : display all organizations when the user is the owner
parent
8f41a527
Pipeline
#7014
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/bundle/organization/Controller/organization.php
View file @
c07a3906
...
...
@@ -276,12 +276,6 @@ class organization
foreach
(
$organizationList
as
$organization
)
{
$parentOrgId
=
(
string
)
$organization
->
parentOrgId
;
if
(
$user
->
ownerOrgId
&&
$organization
->
ownerOrgId
!=
$user
->
ownerOrgId
)
{
if
(
empty
(
$parentOrgId
)
&&
$organization
->
orgId
!=
$user
->
ownerOrgId
)
{
continue
;
}
}
if
(
empty
(
$parentOrgId
)
&&
$owner
)
{
$tree
[]
=
$organization
;
continue
;
...
...
@@ -292,6 +286,12 @@ class organization
continue
;
}
if
(
$user
->
ownerOrgId
&&
$organization
->
ownerOrgId
!=
$user
->
ownerOrgId
)
{
if
(
empty
(
$parentOrgId
)
&&
$organization
->
orgId
!=
$user
->
ownerOrgId
)
{
continue
;
}
}
if
(
!
isset
(
$organizationByParent
[
$parentOrgId
]))
{
$organizationByParent
[
$parentOrgId
]
=
array
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment