Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop'
Browse files Browse the repository at this point in the history
Signed-off-by: snipe <[email protected]>

# Conflicts:
#	config/version.php
  • Loading branch information
snipe committed May 24, 2022
2 parents 43c5b41 + 5be7dee commit 2db6cf8
Show file tree
Hide file tree
Showing 646 changed files with 4,695 additions and 1,172 deletions.
4 changes: 3 additions & 1 deletion app/Models/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,9 @@ public function scopeDeployed($query)

public function scopeRequestableAssets($query)
{
return Company::scopeCompanyables($query->where('requestable', '=', 1))
$table = $query->getModel()->getTable();

return Company::scopeCompanyables($query->where($table.'.requestable', '=', 1))
->whereHas('assetstatus', function ($query) {
$query->where(function ($query) {
$query->where('deployable', '=', 1)
Expand Down
12 changes: 6 additions & 6 deletions config/version.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
return array (
'app_version' => 'v6.0.1',
'full_app_version' => 'v6.0.1 - build 7863-g90a4ce572',
'build_version' => '7863',
'app_version' => 'v6.0.2',
'full_app_version' => 'v6.0.2 - build 7880-g43c5b412c',
'build_version' => '7880',
'prerelease_version' => '',
'hash_version' => 'g90a4ce572',
'full_hash' => 'v6.0.1-111-g90a4ce572',
'hash_version' => 'g43c5b412c',
'full_hash' => 'v6.0.2-128-g43c5b412c',
'branch' => 'master',
);
);
12 changes: 12 additions & 0 deletions resources/lang/af/account/general.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

return array(
'personal_api_keys' => 'Personal API Keys',
'api_key_warning' => 'When generating an API token, be sure to copy it down immediately as they
will not be visible to you again.',
'api_base_url' => 'Your API base url is located at:',
'api_base_url_endpoint' => '/&lt;endpoint&gt;',
'api_token_expiration_time' => 'API tokens are set to expire in:',
'api_reference' => 'Please check the <a href="https://snipe-it.readme.io/reference" target="_blank">API reference</a> to
find specific API endpoints and additional API documentation.',
);
1 change: 1 addition & 0 deletions resources/lang/af/admin/hardware/message.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
'error' => 'Bate is nie opgedateer nie, probeer asseblief weer',
'success' => 'Bate is suksesvol opgedateer.',
'nothing_updated' => 'Geen velde is gekies nie, dus niks is opgedateer nie.',
'no_assets_selected' => 'No assets were selected, so nothing was updated.',
],

'restore' => [
Expand Down
2 changes: 2 additions & 0 deletions resources/lang/af/admin/settings/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
'auto_increment_prefix' => 'Voorvoegsel (opsioneel)',
'auto_incrementing_help' => 'Enable auto-incrementing asset tags first to set this',
'backups' => 'rugsteun',
'backups_help' => 'Create, download, and restore backups ',
'backups_restoring' => 'Restoring from Backup',
'backups_upload' => 'Upload Backup',
'backups_path' => 'Backups on the server are stored in <code>:path</code>',
Expand Down Expand Up @@ -84,6 +85,7 @@
'ldap_client_tls_key' => 'LDAP Client-Side TLS key',
'ldap_login_test_help' => 'Enter a valid LDAP username and password from the base DN you specified above to test whether your LDAP login is configured correctly. YOU MUST SAVE YOUR UPDATED LDAP SETTINGS FIRST.',
'ldap_login_sync_help' => 'This only tests that LDAP can sync correctly. If your LDAP Authentication query is not correct, users may still not be able to login. YOU MUST SAVE YOUR UPDATED LDAP SETTINGS FIRST.',
'ldap_manager' => 'LDAP Manager',
'ldap_server' => 'LDAP-bediener',
'ldap_server_help' => 'Dit moet begin met ldap: // (vir unencrypted of TLS) of ldaps: // (vir SSL)',
'ldap_server_cert' => 'LDAP SSL-sertifikaat-validering',
Expand Down
6 changes: 6 additions & 0 deletions resources/lang/af/admin/settings/table.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

return array(
'created' => 'Created',
'size' => 'Size',
);
11 changes: 8 additions & 3 deletions resources/lang/af/admin/users/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@
'view_user' => 'Sien gebruiker: naam',
'usercsv' => 'CSV-lêer',
'two_factor_admin_optin_help' => 'Jou huidige administrasie-instellings laat selektiewe handhawing van twee-faktor-verifikasie toe.',
'two_factor_enrolled' => '2FA-toestel ingeskryf',
'two_factor_active' => '2FA aktief',
'user_deactivated' => 'User is de-activated',
'two_factor_enrolled' => '2FA Device Enrolled ',
'two_factor_active' => '2FA Active ',
'user_deactivated' => 'User cannot login',
'user_activated' => 'User can login',
'activation_status_warning' => 'Do not change activation status',
'group_memberships_helpblock' => 'Only superadmins may edit group memberships.',
'superadmin_permission_warning' => 'Only superadmins may grant a user superadmin access.',
Expand All @@ -34,4 +35,8 @@
'warning_deletion_information' => 'You are about to delete the :count user(s) listed below. Super admin names are highlighted in red.',
'update_user_asssets_status' => 'Update all assets for these users to this status',
'checkin_user_properties' => 'Check in all properties associated with these users',
'remote_label' => 'This is a remote user',
'remote' => 'Remote',
'remote_help' => 'This can be useful if you need to filter by remote users who never or rarely come into your physical locations.',
'not_remote_label' => 'This is not a remote user',
];
2 changes: 1 addition & 1 deletion resources/lang/af/admin/users/table.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
'email' => 'e-pos',
'employee_num' => 'Werknemer No.',
'first_name' => 'Eerste naam',
'groupnotes' => 'Kies \'n groep om aan die gebruiker toe te ken, onthou dat \'n gebruiker die regte van die groep wat hulle toegewys is, aanvaar.',
'groupnotes' => 'Select a group to assign to the user, remember that a user takes on the permissions of the group they are assigned. Use ctrl+click (or cmd+click on MacOS) to deselect groups.',
'id' => 'id',
'inherit' => 'erf',
'job' => 'Werkstitel',
Expand Down
20 changes: 20 additions & 0 deletions resources/lang/af/auth.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

return array(

/*
|--------------------------------------------------------------------------
| Authentication Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used during authentication for various
| messages that we need to display to the user. You are free to modify
| these language lines according to your application's requirements.
|
*/

'failed' => 'These credentials do not match our records.',
'password' => 'The provided password is incorrect.',
'throttle' => 'Too many login attempts. Please try again in :seconds seconds.',

);
11 changes: 9 additions & 2 deletions resources/lang/af/general.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

return [
return [
'accessories' => 'bykomstighede',
'activated' => 'geaktiveer',
'accessory' => 'Bykomstigheid',
Expand All @@ -26,6 +26,7 @@
'audit' => 'oudit',
'audit_report' => 'Ouditlogboek',
'assets' => 'bates',
'assigned_to' => 'Assigned to :name',
'avatar_delete' => 'Verwyder Avatar',
'avatar_upload' => 'Laai avatar op',
'back' => 'terug',
Expand Down Expand Up @@ -114,6 +115,7 @@
'files' => 'Files',
'file_name' => 'lêer',
'file_type' => 'File Type',
'filesize' => 'File Size',
'file_uploads' => 'Lêeroplaaie',
'file_upload' => 'File Upload',
'generate' => 'genereer',
Expand Down Expand Up @@ -229,6 +231,7 @@
'show_current' => 'Show Current',
'sign_in' => 'Teken in',
'signature' => 'Handtekening',
'signed_off_by' => 'Signed Off By',
'skin' => 'Skin',
'slack_msg_note' => 'A slack message will be sent',
'slack_test_msg' => 'Oh hai! Looks like your Slack integration with Snipe-IT is working!',
Expand All @@ -237,6 +240,7 @@
'state' => 'staat',
'status_labels' => 'Status etikette',
'status' => 'status',
'accept_eula' => 'Acceptance Agreement',
'supplier' => 'verskaffer',
'suppliers' => 'Verskaffers',
'sure_to_delete' => 'Is jy seker jy wil verwyder',
Expand Down Expand Up @@ -350,4 +354,7 @@
'checkout_tooltip' => 'Check this item out',
'checkin_tooltip' => 'Check this item in',
'checkout_user_tooltip' => 'Check this item out to a user',
];
'maintenance_mode' => 'The service is temporarily unavailable for system updates. Please check back later.',
'maintenance_mode_title' => 'System Temporarily Unavailable',
'ldap_import' => 'User password should not be managed by LDAP. (This allows you to send forgotten password requests.)',
];
4 changes: 4 additions & 0 deletions resources/lang/af/validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
'url' => 'Die: Attribuutformaat is ongeldig.',
'unique_undeleted' => 'The :attribute must be unique.',
'non_circular' => 'The :attribute must not create a circular reference.',
'gte' => [
'numeric' => 'Value cannot be negative'
],


/*
|--------------------------------------------------------------------------
Expand Down
12 changes: 12 additions & 0 deletions resources/lang/am/account/general.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

return array(
'personal_api_keys' => 'Personal API Keys',
'api_key_warning' => 'When generating an API token, be sure to copy it down immediately as they
will not be visible to you again.',
'api_base_url' => 'Your API base url is located at:',
'api_base_url_endpoint' => '/&lt;endpoint&gt;',
'api_token_expiration_time' => 'API tokens are set to expire in:',
'api_reference' => 'Please check the <a href="https://snipe-it.readme.io/reference" target="_blank">API reference</a> to
find specific API endpoints and additional API documentation.',
);
6 changes: 3 additions & 3 deletions resources/lang/am/admin/hardware/message.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
],

'update' => [
'error' => 'Asset was not updated, please try again',
'success' => 'Asset updated successfully.',
'nothing_updated' => 'No fields were selected, so nothing was updated.',
'error' => 'Asset was not updated, please try again',
'success' => 'Asset updated successfully.',
'nothing_updated' => 'No fields were selected, so nothing was updated.',
'no_assets_selected' => 'No assets were selected, so nothing was updated.',
],

Expand Down
2 changes: 2 additions & 0 deletions resources/lang/am/admin/settings/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
'auto_increment_prefix' => 'Prefix (optional)',
'auto_incrementing_help' => 'Enable auto-incrementing asset tags first to set this',
'backups' => 'Backups',
'backups_help' => 'Create, download, and restore backups ',
'backups_restoring' => 'Restoring from Backup',
'backups_upload' => 'Upload Backup',
'backups_path' => 'Backups on the server are stored in <code>:path</code>',
Expand Down Expand Up @@ -84,6 +85,7 @@
'ldap_client_tls_key' => 'LDAP Client-Side TLS key',
'ldap_login_test_help' => 'Enter a valid LDAP username and password from the base DN you specified above to test whether your LDAP login is configured correctly. YOU MUST SAVE YOUR UPDATED LDAP SETTINGS FIRST.',
'ldap_login_sync_help' => 'This only tests that LDAP can sync correctly. If your LDAP Authentication query is not correct, users may still not be able to login. YOU MUST SAVE YOUR UPDATED LDAP SETTINGS FIRST.',
'ldap_manager' => 'LDAP Manager',
'ldap_server' => 'LDAP Server',
'ldap_server_help' => 'This should start with ldap:// (for unencrypted or TLS) or ldaps:// (for SSL)',
'ldap_server_cert' => 'LDAP SSL certificate validation',
Expand Down
6 changes: 6 additions & 0 deletions resources/lang/am/admin/settings/table.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

return array(
'created' => 'Created',
'size' => 'Size',
);
11 changes: 8 additions & 3 deletions resources/lang/am/admin/users/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@
'view_user' => 'View User :name',
'usercsv' => 'CSV file',
'two_factor_admin_optin_help' => 'Your current admin settings allow selective enforcement of two-factor authentication. ',
'two_factor_enrolled' => '2FA Device Enrolled',
'two_factor_active' => '2FA Active',
'user_deactivated' => 'User is de-activated',
'two_factor_enrolled' => '2FA Device Enrolled ',
'two_factor_active' => '2FA Active ',
'user_deactivated' => 'User cannot login',
'user_activated' => 'User can login',
'activation_status_warning' => 'Do not change activation status',
'group_memberships_helpblock' => 'Only superadmins may edit group memberships.',
'superadmin_permission_warning' => 'Only superadmins may grant a user superadmin access.',
Expand All @@ -34,4 +35,8 @@
'warning_deletion_information' => 'You are about to delete the :count user(s) listed below. Super admin names are highlighted in red.',
'update_user_asssets_status' => 'Update all assets for these users to this status',
'checkin_user_properties' => 'Check in all properties associated with these users',
'remote_label' => 'This is a remote user',
'remote' => 'Remote',
'remote_help' => 'This can be useful if you need to filter by remote users who never or rarely come into your physical locations.',
'not_remote_label' => 'This is not a remote user',
];
2 changes: 1 addition & 1 deletion resources/lang/am/admin/users/table.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
'email' => 'Email',
'employee_num' => 'Employee No.',
'first_name' => 'First Name',
'groupnotes' => 'Select a group to assign to the user, remember that a user takes on the permissions of the group they are assigned.',
'groupnotes' => 'Select a group to assign to the user, remember that a user takes on the permissions of the group they are assigned. Use ctrl+click (or cmd+click on MacOS) to deselect groups.',
'id' => 'Id',
'inherit' => 'Inherit',
'job' => 'Job Title',
Expand Down
20 changes: 20 additions & 0 deletions resources/lang/am/auth.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

return array(

/*
|--------------------------------------------------------------------------
| Authentication Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used during authentication for various
| messages that we need to display to the user. You are free to modify
| these language lines according to your application's requirements.
|
*/

'failed' => 'These credentials do not match our records.',
'password' => 'The provided password is incorrect.',
'throttle' => 'Too many login attempts. Please try again in :seconds seconds.',

);
11 changes: 9 additions & 2 deletions resources/lang/am/general.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

return [
return [
'accessories' => 'Accessories',
'activated' => 'Activated',
'accessory' => 'Accessory',
Expand All @@ -26,6 +26,7 @@
'audit' => 'Audit',
'audit_report' => 'Audit Log',
'assets' => 'Assets',
'assigned_to' => 'Assigned to :name',
'avatar_delete' => 'Delete Avatar',
'avatar_upload' => 'Upload Avatar',
'back' => 'Back',
Expand Down Expand Up @@ -114,6 +115,7 @@
'files' => 'Files',
'file_name' => 'File',
'file_type' => 'File Type',
'filesize' => 'File Size',
'file_uploads' => 'File Uploads',
'file_upload' => 'File Upload',
'generate' => 'Generate',
Expand Down Expand Up @@ -229,6 +231,7 @@
'show_current' => 'Show Current',
'sign_in' => 'Sign in',
'signature' => 'Signature',
'signed_off_by' => 'Signed Off By',
'skin' => 'Skin',
'slack_msg_note' => 'A slack message will be sent',
'slack_test_msg' => 'Oh hai! Looks like your Slack integration with Snipe-IT is working!',
Expand All @@ -237,6 +240,7 @@
'state' => 'State',
'status_labels' => 'Status Labels',
'status' => 'Status',
'accept_eula' => 'Acceptance Agreement',
'supplier' => 'Supplier',
'suppliers' => 'Suppliers',
'sure_to_delete' => 'Are you sure you wish to delete',
Expand Down Expand Up @@ -350,4 +354,7 @@
'checkout_tooltip' => 'Check this item out',
'checkin_tooltip' => 'Check this item in',
'checkout_user_tooltip' => 'Check this item out to a user',
];
'maintenance_mode' => 'The service is temporarily unavailable for system updates. Please check back later.',
'maintenance_mode_title' => 'System Temporarily Unavailable',
'ldap_import' => 'User password should not be managed by LDAP. (This allows you to send forgotten password requests.)',
];
4 changes: 4 additions & 0 deletions resources/lang/am/validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
'url' => 'The :attribute format is invalid.',
'unique_undeleted' => 'The :attribute must be unique.',
'non_circular' => 'The :attribute must not create a circular reference.',
'gte' => [
'numeric' => 'Value cannot be negative'
],


/*
|--------------------------------------------------------------------------
Expand Down
12 changes: 12 additions & 0 deletions resources/lang/ar/account/general.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

return array(
'personal_api_keys' => 'Personal API Keys',
'api_key_warning' => 'When generating an API token, be sure to copy it down immediately as they
will not be visible to you again.',
'api_base_url' => 'Your API base url is located at:',
'api_base_url_endpoint' => '/&lt;endpoint&gt;',
'api_token_expiration_time' => 'API tokens are set to expire in:',
'api_reference' => 'Please check the <a href="https://snipe-it.readme.io/reference" target="_blank">API reference</a> to
find specific API endpoints and additional API documentation.',
);
1 change: 1 addition & 0 deletions resources/lang/ar/admin/hardware/message.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
'error' => 'لم يتم تحديث الأصل، يرجى إعادة المحاولة',
'success' => 'تم تحديث الأصل بنجاح.',
'nothing_updated' => 'لم يتم اختيار أي حقول، لذلك لم يتم تحديث أي شيء.',
'no_assets_selected' => 'No assets were selected, so nothing was updated.',
],

'restore' => [
Expand Down
2 changes: 2 additions & 0 deletions resources/lang/ar/admin/settings/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
'auto_increment_prefix' => 'البادئة (اختياري)',
'auto_incrementing_help' => 'Enable auto-incrementing asset tags first to set this',
'backups' => 'النسخ الإحتياطية',
'backups_help' => 'Create, download, and restore backups ',
'backups_restoring' => 'Restoring from Backup',
'backups_upload' => 'Upload Backup',
'backups_path' => 'Backups on the server are stored in <code>:path</code>',
Expand Down Expand Up @@ -84,6 +85,7 @@
'ldap_client_tls_key' => 'LDAP Client-Side TLS key',
'ldap_login_test_help' => 'أدخل اسم مستخدم وكلمة مرور LDAP من الاسم المميز الأساسي DN الذي حددته أعلاه لاختبار ما إذا كان قد تمت تهيئة معلومات تسجيل الدخول إلى LDAP بشكل صحيح أم لا. يجب حفظ تحديث LDAP الخاص بك أولا.',
'ldap_login_sync_help' => 'هذا يختبر فقط أن LDAP يستطيع المزامنة بشكل صحيح. إذا كان استعلام التوثيق الى LDAP الخاص بك غير صحيح، قد لا يزال المستخدمون غير قادرين على تسجيل الدخول. يجب عليك اولا حفظ اي تغييرات في إعدادات LDAP.',
'ldap_manager' => 'LDAP Manager',
'ldap_server' => 'خادم لداب',
'ldap_server_help' => 'ينبغي أن يبدأ هذا مع //:ldap (للاتصال غير المشفر او TLS) او //:ldaps (لاتصال SSL)',
'ldap_server_cert' => 'التحقق من صحة شهادة سل لداب',
Expand Down
6 changes: 6 additions & 0 deletions resources/lang/ar/admin/settings/table.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

return array(
'created' => 'Created',
'size' => 'Size',
);
Loading

0 comments on commit 2db6cf8

Please sign in to comment.