Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Maarch
digitalSafe
Commits
6f2902f3
Commit
6f2902f3
authored
Nov 16, 2020
by
Arnaud Pauget
Browse files
Merge branch 'release/2.6.2' into 'develop'
Release/2.6.2 See merge request
!24
parents
706f963b
13559870
Changes
3
Hide whitespace changes
Inline
Side-by-side
VERSION.md
View file @
6f2902f3
2.
6.1
\ No newline at end of file
2.
6.2
\ No newline at end of file
bundle/digitalSafe/Controller/digitalSafe.php
View file @
6f2902f3
...
...
@@ -458,6 +458,12 @@ class digitalSafe
$archiveId
=
null
,
$hasLog
=
true
)
{
$currentUserService
=
\
laabs
::
getToken
(
"ORGANIZATION"
);
$org
=
$this
->
organizationController
->
getOrgByRegNumber
(
$originatorOrgRegNumber
);
$positionAncestors
=
$this
->
organizationController
->
readParentOrg
(
$this
->
organizationController
->
getOrgByRegNumber
(
$originatorOrgRegNumber
)
->
orgId
);
$positionAncestors
[]
=
$org
;
$queryParts
=
array
();
$queryParams
=
array
();
...
...
@@ -477,20 +483,11 @@ class digitalSafe
throw
$this
->
getThrowable
(
"The organization must not be a organization unit"
,
403
,
$replyMessage
);
}
$userPositions
=
$this
->
userPositionController
->
listPositions
(
$this
->
account
->
accountId
);
$userPositions
[]
=
$this
->
servicePositionController
->
getPosition
(
$this
->
account
->
accountId
);
$userPosition
=
$this
->
servicePositionController
->
getPosition
(
$this
->
account
->
accountId
);
$organizations
=
$this
->
organizationController
->
readDescendantServices
(
$organization
->
orgId
);
$userOrganisations
=
[];
foreach
(
$organizations
as
$organization
)
{
if
(
is_null
(
$originatorOrgRegNumber
)
||
$originatorOrgRegNumber
==
$organization
->
registrationNumber
)
{
foreach
(
$userPositions
as
$userPosition
)
{
if
(
$userPosition
->
orgId
==
$organization
->
orgId
)
{
$userOrganisations
[]
=
$organization
;
}
}
foreach
(
$positionAncestors
as
$orgUnit
)
{
if
(
$orgUnit
->
registrationNumber
==
$currentUserService
->
registrationNumber
)
{
$userOrganisations
[]
=
$org
;
}
}
...
...
data/conf/vhost.conf.default
View file @
6f2902f3
...
...
@@ -33,6 +33,8 @@
SetEnv LAABS_DEPENDENCIES repository;xml;html;localisation;datasource;sdo;json;fileSystem;notification;PDF;csrf;csv;timestamp
SetEnv LAABS_PRESENTATION maarchRM
SetEnv SERVICE_CLIENT_TOKEN service
SetEnv LAABS_SESSION_START Off
#SetEnv LAABS_SECURE_COOKIE On
SetEnv LAABS_CONFIGURATION "../src/ext/digitalSafe/data/conf/configuration.ini"
SetEnv LAABS_LOG "../data/maarchRM/log.txt"
...
...
Write
Preview
Supports
Markdown
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