Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
maarchRM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maarch
maarchRM
Merge requests
!98
modification of metadata
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
modification of metadata
bugfix/7718-modifyMetadata
into
develop
Overview
0
Commits
1
Pipelines
0
Changes
3
Merged
Alexis Ragot
requested to merge
bugfix/7718-modifyMetadata
into
develop
6 years ago
Overview
0
Commits
1
Pipelines
0
Changes
3
Expand
1
0
Merge request reports
Viewing commit
9e8ec29a
Show latest version
3 files
+
36
−
24
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
Verified
9e8ec29a
fix the modification of metadata
· 9e8ec29a
Alexis Ragot
authored
6 years ago
src/bundle/recordsManagement/Controller/archive.php
+
12
−
3
Options
@@ -609,8 +609,17 @@ class archive
$currentOrganization
=
\laabs
::
getToken
(
"ORGANIZATION"
);
//$userOrgList = [];
$positionController
=
null
;
$positionController
=
\laabs
::
newController
(
'organization/userPosition'
);
$descandantServices
=
$positionController
->
readDescandantService
(
$currentOrganization
->
orgId
);
$descandantRegNumber
=
[];
$descandantRegNumber
[]
=
$currentOrganization
->
registrationNumber
;
foreach
(
$descandantServices
as
$descandantService
)
{
$descandantRegNumber
[]
=
$descandantService
;
}
if
(
!
$currentOrganization
)
{
return
false
;
@@ -620,7 +629,7 @@ class archive
return
true
;
}
if
((
$archive
->
originatorOrgRegNumber
!=
$currentOrganization
->
registration
Number
)
&&
(
$archive
->
archiverOrgRegNumber
!=
$currentOrganization
->
registrationNumber
))
{
if
(
!
in_array
(
$archive
->
originatorOrgRegNumber
,
$descandantReg
Number
)
&&
(
$archive
->
archiverOrgRegNumber
!=
$currentOrganization
->
registrationNumber
))
{
throw
\laabs
::
newException
(
'recordsManagement/accessDeniedException'
,
"Permission denied"
);
}
Loading