Verified Commit c579025d authored by Alexandre Morin's avatar Alexandre Morin
Browse files

fix () : minor bug

parent 390eae6b
......@@ -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 ;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment