Verified Commit 816e9f4d authored by Alexis Ragot's avatar Alexis Ragot
Browse files

Fix bug on the archive information view if the user doesn't have right to deposit

parent 699f2d4b
......@@ -171,6 +171,7 @@ class welcome
// Add a sub archive
$depositPrivilege = \laabs::callService('auth/userAccount/readHasprivilege', "archiveDeposit/deposit");
$fileplanLevel = false;
if ($depositPrivilege) {
if (!empty($archive->archivalProfileReference)) {
$archivalProfile = \laabs::callService('recordsManagement/archivalProfile/readByreference_reference_', $archive->archivalProfileReference);
......
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