Skip to content

Commit 8c56aa9

Browse files
committed
changed the wrong language file
1 parent d528126 commit 8c56aa9

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

resources/lang/ca-ES/admin/users/general.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
'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.',
88
'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.',
99
'current_assets' => 'Assets currently checked out to this user',
10-
'current_items' => ':item currently checked out to this user',
1110
'clone' => 'Clone User',
1211
'contact_user' => 'Contact :name',
1312
'edit' => 'Edit User',

resources/lang/en-US/admin/users/general.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
'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.',
88
'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.',
99
'current_assets' => 'Assets currently checked out to this user',
10+
'current_items' => ':item currently checked out to this user',
1011
'clone' => 'Clone User',
1112
'contact_user' => 'Contact :name',
1213
'edit' => 'Edit User',

resources/views/partials/licenses-assigned.blade.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script nonce="{{ csrf_token() }}">
2-
3-
// create the assigned assets listing box for the right side of the screen
2+
let canViewKeys = @json(Gate::check('viewKeys', $license));
3+
// create the assigned licenses listing box for the right side of the screen
44
$(function() {
55
$('#assigned_user').on("change",function () {
66
var userid = $('#assigned_user option:selected').val();
@@ -45,10 +45,11 @@
4545
} else {
4646
table_html += license.name;
4747
}
48-
49-
table_html += '</a></td>';
50-
table_html += '<td class="col-md-4">' + license.product_key + '</td>';
51-
table_html += "</tr>";
48+
table_html += '</a></td>';
49+
if (canViewKeys) {
50+
table_html += '<td class="col-md-4">' + license.product_key + '</td>';
51+
}
52+
table_html += "</tr>";
5253
}
5354
} else {
5455
table_html += '<tr><td colspan="4">{{ trans('admin/users/message.user_has_no_assets_assigned') }}</td></tr>';

0 commit comments

Comments
 (0)