Commit fe5ba9b9 authored by Dylan's avatar Dylan
Browse files

Restriction of management modification meta data

parent fb93f439
......@@ -162,6 +162,8 @@ class welcome
$acceptUserIndex = true;
$managementPrivilege = \laabs::callService('auth/userAccount/readHasprivilege', "archiveManagement/modify");
// Archive
$originatorOrg = \laabs::callService('organization/organization/readByregnumber_registrationNumber_', $archive->originatorOrgRegNumber);
$archive->originatorOrgName = $originatorOrg->displayName;
......@@ -225,6 +227,8 @@ class welcome
$this->view->setSource("archivalProfileList", $archivalProfileList);
$this->view->setSource("acceptArchiveWithoutProfile", $acceptArchiveWithoutProfile);
$this->view->setSource("acceptUserIndex", $acceptUserIndex);
$this->view->setSource('managementPrivilege', $managementPrivilege);
$this->view->merge();
return $this->view->saveHtml();
......
......@@ -66,6 +66,7 @@
<a role="button" data-toggle="collapse" href="#managementInfo" >
<span class="text-info">Management information</span>
</a>
<?merge managementPrivilege.bool() ?>
<button type="button" class="btn btn-default btn-sm" id="editManagementMetadata" title="Edit" style="border:0px solid transparent"><i class="fa fa-edit"></i></button>
<!--<a href="#" class="unfreeze [?merge status.ifne('frozen').then('hide', '') ?]" data-type="unfreeze" title="Unfreeze"><i class="fa fa-unlock"></i></a>
<a href="#" class="freeze [?merge status.ifeq('frozen').then('hide', '') ?]" data-type="freeze" title="Freeze"><i class="fa fa-lock"></i></a>-->
......
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