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
maarchRM
Commits
c579025d
Verified
Commit
c579025d
authored
Feb 20, 2020
by
Alexandre Morin
Browse files
fix () : minor bug
parent
390eae6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/presentation/maarchRM/Presenter/recordsManagement/archive.php
View file @
c579025d
...
...
@@ -378,7 +378,7 @@ class archive
$canDeleteResource
=
$canAddResource
=
false
;
if
((
$currentService
->
registrationNumber
==
$archive
->
archiverOrgRegNumber
||
in_array
(
"owner"
,
$currentService
->
orgRoleCodes
))
if
((
$currentService
->
registrationNumber
==
$archive
->
archiverOrgRegNumber
||
(
$currentService
->
orgRoleCodes
&&
in_array
(
"owner"
,
$currentService
->
orgRoleCodes
))
)
&&
\
laabs
::
callService
(
'auth/userAccount/readHasprivilege'
,
"archiveManagement/addResource"
)
&&
$archive
->
status
===
'preserved'
)
{
$canDeleteResource
=
$canAddResource
=
true
;
...
...
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