Skip to content

A free open source IT asset/license management system

changed the wrong language file

Godfrey M8c56aa957509
diff --git a/resources/lang/ca-ES/admin/users/general.php b/resources/lang/ca-ES/admin/users/general.php
index 9c09efec75..cecf786ce2 100644
--- a/resources/lang/ca-ES/admin/users/general.php
+++ b/resources/lang/ca-ES/admin/users/general.php
@@ -7,7 +7,6 @@ return [
'bulk_update_warn' => 'You are about to edit the properties of :user_count users. Please note that you cannot change your own user attributes using this form, and must make edits to your own user individually.',
'bulk_update_help' => 'This form allows you to update multiple users at once. Only fill in the fields you need to change. Any fields left blank will remain unchanged.',
'current_assets' => 'Assets currently checked out to this user',
- 'current_items' => ':item currently checked out to this user',
'clone' => 'Clone User',
'contact_user' => 'Contact :name',
'edit' => 'Edit User',
diff --git a/resources/lang/en-US/admin/users/general.php b/resources/lang/en-US/admin/users/general.php
index fa0f478d4b..1851733bd0 100644
--- a/resources/lang/en-US/admin/users/general.php
+++ b/resources/lang/en-US/admin/users/general.php
@@ -7,6 +7,7 @@ return [
'bulk_update_warn' => 'You are about to edit the properties of :user_count users. Please note that you cannot change your own user attributes using this form, and must make edits to your own user individually.',
'bulk_update_help' => 'This form allows you to update multiple users at once. Only fill in the fields you need to change. Any fields left blank will remain unchanged.',
'current_assets' => 'Assets currently checked out to this user',
+ 'current_items' => ':item currently checked out to this user',
'clone' => 'Clone User',
'contact_user' => 'Contact :name',
'edit' => 'Edit User',
diff --git a/resources/views/partials/licenses-assigned.blade.php b/resources/views/partials/licenses-assigned.blade.php
index 02532bb276..7218c346d6 100644
--- a/resources/views/partials/licenses-assigned.blade.php
+++ b/resources/views/partials/licenses-assigned.blade.php
@@ -1,6 +1,6 @@
<script nonce="{{ csrf_token() }}">
-
- // create the assigned assets listing box for the right side of the screen
+ let canViewKeys = @json(Gate::check('viewKeys', $license));
+ // create the assigned licenses listing box for the right side of the screen
$(function() {
$('#assigned_user').on("change",function () {
var userid = $('#assigned_user option:selected').val();
@@ -45,10 +45,11 @@
} else {
table_html += license.name;
}
-
- table_html += '</a></td>';
- table_html += '<td class="col-md-4">' + license.product_key + '</td>';
- table_html += "</tr>";
+ table_html += '</a></td>';
+ if (canViewKeys) {
+ table_html += '<td class="col-md-4">' + license.product_key + '</td>';
+ }
+ table_html += "</tr>";
}
} else {
table_html += '<tr><td colspan="4">{{ trans('admin/users/message.user_has_no_assets_assigned') }}</td></tr>';