major update
This commit is contained in:
@@ -41,15 +41,10 @@
|
||||
];
|
||||
require templatePath('partials/app-details-titlebar.phtml');
|
||||
?>
|
||||
<?php if (!empty($errors)): ?>
|
||||
<div class="notice" data-variant="error">
|
||||
<ul>
|
||||
<?php foreach ($errors as $error): ?>
|
||||
<li><?php e($error); ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
$validationSummaryErrors = $validationSummaryErrors ?? ($errors ?? []);
|
||||
require templatePath('partials/app-details-validation-summary.phtml');
|
||||
?>
|
||||
<?php
|
||||
$values = $form ?? [];
|
||||
$passwordRequired = true;
|
||||
@@ -57,7 +52,8 @@
|
||||
$passwordLabel = t('Password');
|
||||
$passwordLegend = t('Password');
|
||||
$passwordConfirmLabel = t('Password (again)');
|
||||
$showTenants = can('users.update_assignments');
|
||||
$pageAuth = is_array($viewAuth['page'] ?? null) ? $viewAuth['page'] : [];
|
||||
$showTenants = (bool) ($pageAuth['can_manage_assignments'] ?? false);
|
||||
$showRoles = $showTenants;
|
||||
$showDepartments = $showTenants;
|
||||
$tenants = $tenants ?? [];
|
||||
@@ -67,7 +63,7 @@
|
||||
$selectedDepartmentIds = $selectedDepartmentIds ?? [];
|
||||
$departmentOptionsByTenant = $departmentOptionsByTenant ?? [];
|
||||
$showCustomFieldsTab = true;
|
||||
$canEditCustomFieldValues = !empty($canEditCustomFieldValues);
|
||||
$canEditCustomFieldValues = (bool) ($pageAuth['can_edit_custom_field_values'] ?? false);
|
||||
$customFieldDefinitionsByTenant = $customFieldDefinitionsByTenant ?? [];
|
||||
$customFieldValueMap = $customFieldValueMap ?? [];
|
||||
$customFieldPostedValues = $customFieldPostedValues ?? [];
|
||||
|
||||
Reference in New Issue
Block a user