snipe
|
67ed0d91c0
|
Handle file_get_contents more gracefully
Signed-off-by: snipe <snipe@snipe.net>
|
2022-03-04 02:54:37 -08:00 |
|
snipe
|
b876d0abb0
|
Merge remote-tracking branch 'origin/master' into develop
Signed-off-by: snipe <snipe@snipe.net>
# Conflicts:
# .env.example
# app/Http/Controllers/Auth/LoginController.php
# app/Http/Kernel.php
# app/Http/Transformers/ActionlogsTransformer.php
# app/Importer/AssetImporter.php
# app/Models/Accessory.php
# app/Models/Consumable.php
# app/Presenters/AccessoryPresenter.php
# app/Presenters/ComponentPresenter.php
# app/Presenters/ConsumablePresenter.php
# app/Providers/AuthServiceProvider.php
# composer.json
# composer.lock
# config/app.php
# config/cors.php
# config/version.php
# package-lock.json
# public/js/build/app.js
# public/js/build/app.js.LICENSE.txt
# public/js/dist/all.js
# public/mix-manifest.json
# resources/views/accessories/view.blade.php
# resources/views/consumables/view.blade.php
# resources/views/settings/saml.blade.php
# routes/api.php
|
2022-03-03 21:59:38 -08:00 |
|
snipe
|
29a2e80984
|
Merge pull request #10771 from uberbrady/retry_fix_bad_metadata_display
Retry fix bad metadata display
|
2022-03-03 20:49:30 -08:00 |
|
snipe
|
94dded3785
|
Added notes field to presenters for table view show/hide columns
Signed-off-by: snipe <snipe@snipe.net>
|
2022-03-03 20:30:07 -08:00 |
|
snipe
|
ac8a7d0bc9
|
Made notes field fillable and searchable
Signed-off-by: snipe <snipe@snipe.net>
|
2022-03-03 20:29:48 -08:00 |
|
snipe
|
6fca8350f9
|
Added notes field to transformers
Signed-off-by: snipe <snipe@snipe.net>
|
2022-03-03 20:29:35 -08:00 |
|
snipe
|
9acb5413f6
|
Added notes field to controllers
Signed-off-by: snipe <snipe@snipe.net>
|
2022-03-03 20:29:25 -08:00 |
|
snipe
|
08a2fe4edb
|
Merge pull request #10773 from snipe/features/adds_ldap_import_and_assets_count_to_user_api
Features/adds ldap import and assets count to user api
|
2022-03-03 19:15:14 -08:00 |
|
snipe
|
6abe8f296b
|
We don’t need the users table here
Signed-off-by: snipe <snipe@snipe.net>
|
2022-03-03 19:12:03 -08:00 |
|
snipe
|
a53a67be4a
|
Added consumables, licenses, accessories count filters too
Signed-off-by: snipe <snipe@snipe.net>
|
2022-03-03 19:08:08 -08:00 |
|
snipe
|
b72cac3511
|
Adds ldap_import and assets_count filter to user API endpoint
Signed-off-by: snipe <snipe@snipe.net>
|
2022-03-03 19:03:35 -08:00 |
|
snipe
|
c940d36fff
|
Updated maintenance gate in API
Signed-off-by: snipe <snipe@snipe.net>
|
2022-03-03 18:49:54 -08:00 |
|
snipe
|
cd12028845
|
Use “update” instead of edit in gate
Signed-off-by: snipe <snipe@snipe.net>
|
2022-03-03 18:47:20 -08:00 |
|
Brady Wetherington
|
3225605ef3
|
Handling the old weirdly-formatted data wasn't quite working.
|
2022-03-03 18:17:29 -08:00 |
|
Brady Wetherington
|
31dde20a2b
|
Actually, re-introduce this code comment as it's still relevant and tricky
|
2022-03-03 15:48:04 -08:00 |
|
Brady Wetherington
|
aa36ebc947
|
Merge branch 'fix_bad_metadata_display' into retry_fix_bad_metadata_display
|
2022-03-03 15:46:19 -08:00 |
|
Brady Wetherington
|
92434fa943
|
Revert "Revert "refactor and clean up attribute-changing logic for assets""
This reverts commit bdc737ce0c .
|
2022-03-03 15:45:54 -08:00 |
|
Brady Wetherington
|
0164354463
|
Fix for the weird error that blew up the demo when my PR got merged
|
2022-03-02 15:15:16 -08:00 |
|
snipe
|
bdc737ce0c
|
Revert "refactor and clean up attribute-changing logic for assets"
This reverts commit 290baf1c8d .
Signed-off-by: snipe <snipe@snipe.net>
|
2022-03-02 14:45:14 -08:00 |
|
snipe
|
733b3a7550
|
Merge pull request #10682 from uberbrady/fix_bad_metadata_display
Fixed weird JSON-handling on log_meta updates
|
2022-03-02 14:36:38 -08:00 |
|
snipe
|
3339a691e1
|
Merge pull request #10721 from snipe/features/adds_users_consumables_endpoint
Added consumables endpoint to user API
|
2022-03-02 14:33:45 -08:00 |
|
snipe
|
2eef43e8bf
|
Applies develop fix to master for location drop downs
|
2022-03-01 12:43:35 -08:00 |
|
Andrew Roth
|
2e60420aeb
|
Fix for location and model drop down with granular permissions.
|
2022-02-28 17:38:38 -05:00 |
|
Godfrey M
|
533670f3f1
|
faulty method for converting asset acceptance to pdf
|
2022-02-24 14:50:16 -08:00 |
|
Ivan Nieto Vivanco
|
64fa7e23fc
|
Separate notes on assets and asset models
|
2022-02-24 16:05:03 -06:00 |
|
Ivan Nieto Vivanco
|
577dc6b02c
|
Separate notes on assets and asset models
|
2022-02-24 15:50:59 -06:00 |
|
snipe
|
2906a89442
|
Make the 429 error less stupid
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-24 13:10:34 -08:00 |
|
snipe
|
50f55b4308
|
Fixes broken API throttling
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-24 13:10:10 -08:00 |
|
snipe
|
a8028e7dd0
|
Merge pull request #10727 from uberbrady/master
Fix for negative CORS/SAML interaction
|
2022-02-23 11:17:17 -08:00 |
|
Brady Wetherington
|
15abc84ab0
|
Migrate to Fruitcake/laravel-cors which has path-exclusion built-in
|
2022-02-23 11:06:19 -08:00 |
|
snipe
|
42fcd29200
|
Fixed #10436 on master, applies #10449
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-22 21:06:54 -08:00 |
|
snipe
|
dc2e6c2b06
|
Adds consumables endpoint to user API
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-22 20:44:34 -08:00 |
|
Brady Wetherington
|
294606fb0b
|
Move new CORS library to global middleware, the only place it works
|
2022-02-22 19:07:23 -08:00 |
|
Brady Wetherington
|
64f83f9a5f
|
Move HandleCors middleware to be universal
|
2022-02-22 17:43:40 -08:00 |
|
snipe
|
0a4a548f9c
|
Added use statement
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-22 10:46:02 -08:00 |
|
snipe
|
dd5f812d88
|
Merge remote-tracking branch 'origin/master' into develop
Signed-off-by: snipe <snipe@snipe.net>
# Conflicts:
# .all-contributorsrc
# README.md
# app/Console/Commands/FixDoubleEscape.php
# app/Console/Commands/LdapSync.php
# app/Exceptions/Handler.php
# app/Http/Controllers/Api/AssetMaintenancesController.php
# app/Http/Controllers/Api/AssetModelsController.php
# app/Http/Controllers/Api/AssetsController.php
# app/Http/Controllers/Api/CategoriesController.php
# app/Http/Controllers/Api/CompaniesController.php
# app/Http/Controllers/Api/DepartmentsController.php
# app/Http/Controllers/Api/LicensesController.php
# app/Http/Controllers/Api/LocationsController.php
# app/Http/Controllers/Api/ManufacturersController.php
# app/Http/Controllers/Api/SettingsController.php
# app/Http/Controllers/Api/SuppliersController.php
# app/Http/Controllers/AssetModelsController.php
# app/Http/Controllers/Auth/LoginController.php
# app/Http/Controllers/CustomFieldsController.php
# app/Http/Controllers/SettingsController.php
# app/Models/Loggable.php
# app/Providers/AuthServiceProvider.php
# config/version.php
# database/migrations/2014_11_04_231416_update_group_field_for_reporting.php
# database/migrations/2015_11_08_222305_add_ldap_fields_to_settings.php
# package-lock.json
# package.json
# public/js/build/app.js
# public/js/dist/all.js
# public/mix-manifest.json
# resources/assets/js/components/forms/asset-models/fieldset-default-values.vue
# resources/views/hardware/view.blade.php
|
2022-02-20 13:29:12 -08:00 |
|
Ivan Nieto Vivanco
|
23a6907975
|
Some minor stylistic changes
|
2022-02-17 18:05:06 -06:00 |
|
Ivan Nieto Vivanco
|
5b2a5ff124
|
Put the 'remember_token' column as null in the users table
|
2022-02-17 18:03:00 -06:00 |
|
Ivan Nieto Vivanco
|
548b172744
|
Logout every connected user
|
2022-02-17 18:00:24 -06:00 |
|
Ivan Nieto Vivanco
|
263893b3c6
|
Search logged in user that made the restore, if they doesn't exist in the restored system, add it again
|
2022-02-17 17:42:06 -06:00 |
|
Ivan Nieto Vivanco
|
811ca51c4f
|
Wipe database before restoration
|
2022-02-17 16:59:44 -06:00 |
|
snipe
|
d1b45a83b8
|
Blergh, one more linebreak
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-17 14:51:06 -08:00 |
|
snipe
|
01a8701a8c
|
Removed extra linebreaks
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-17 14:50:38 -08:00 |
|
snipe
|
67fe53e32a
|
Removed debugging, added comments
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-17 14:50:07 -08:00 |
|
snipe
|
7f6b8cc43d
|
Removed carbon, since we went with PHP's datetime instead
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-17 14:48:12 -08:00 |
|
snipe
|
5fe999eb02
|
Shored up the date math, updated the explanation
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-17 14:34:33 -08:00 |
|
snipe
|
ea429d650e
|
Initial audit date fix
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-16 20:19:38 -08:00 |
|
snipe
|
824eedf7c2
|
Added UI elements for is_unique
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-16 13:47:48 -08:00 |
|
snipe
|
a4a0aa5124
|
Removed debugging line
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-16 13:47:22 -08:00 |
|
snipe
|
6a91d4d19e
|
Check for uniqueness constraint
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-16 13:46:22 -08:00 |
|
snipe
|
ea8f9a6dd9
|
Make is_unique fillable
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-16 13:45:44 -08:00 |
|
snipe
|
b78f32e876
|
Merge pull request #10655 from inietov/fixes/trying_to_get_property_checkin_email_of_non-object_develop
Fixes ErrorException: Trying to get property 'checkin_email' of non-object for develop[sc-17568]
|
2022-02-16 11:19:14 -07:00 |
|
snipe
|
592f66bd0c
|
Merge pull request #10670 from Godmartinz/gh10639/linear-depreciation-calculation
Fixed #10639 - incorrect linear depreciation calculation
|
2022-02-16 11:18:27 -07:00 |
|
snipe
|
4f89dfee49
|
Merge pull request #10679 from snipe/fixes/timing_attack_mitigation_for_forgot_password
Added usleep random to forgotten password method to mitigate timing attacks
|
2022-02-16 11:17:00 -07:00 |
|
snipe
|
017534bc07
|
Added deleted_at to license transformer
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-16 09:33:28 -08:00 |
|
snipe
|
5540069cce
|
Be more specific with deleted license point
Require this value to be "true" speciically to get the deleted list
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-16 09:14:04 -08:00 |
|
snipe
|
1ad56760ce
|
Adds delete endpoint for licenses
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-16 09:08:50 -08:00 |
|
Brady Wetherington
|
290baf1c8d
|
refactor and clean up attribute-changing logic for assets
|
2022-02-15 18:29:45 -08:00 |
|
snipe
|
f878e0ad66
|
Fixes 2FA cookie -> user issue
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-15 18:29:23 -08:00 |
|
snipe
|
178e440951
|
Added usleep :(
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-15 18:09:58 -08:00 |
|
snipe
|
cab4fa1687
|
Fixes some conceptual gates
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-14 15:42:23 -08:00 |
|
snipe
|
4804e5b3ab
|
Added Asset edit/delete gates to maintenances
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-14 15:34:06 -08:00 |
|
Godfrey M
|
7b9a2ae909
|
added rounding
|
2022-02-14 09:34:42 -08:00 |
|
Godfrey M
|
6e204a20ca
|
fixed current value formula
|
2022-02-14 09:28:35 -08:00 |
|
Godfrey M
|
e6e68934f7
|
adds a months depreciated variable
|
2022-02-14 09:13:14 -08:00 |
|
Godfrey M
|
cdc402fa04
|
WIP formula for linear Depreciation has been corrected. still one variable left to fix.
|
2022-02-14 09:01:42 -08:00 |
|
snipe
|
1c0a96b0ce
|
Added gate to supplier
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-13 11:58:12 -07:00 |
|
snipe
|
d77a47765e
|
Adds gate to supplier
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-13 11:53:45 -07:00 |
|
snipe
|
d6b8222371
|
Refactor to combine permissions
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-11 12:48:30 -08:00 |
|
snipe
|
2c5abaaea4
|
Fixed copypasta
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-11 12:32:09 -08:00 |
|
snipe
|
c1a0653847
|
Restrict to update or create gate methods for select lists
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-11 12:31:11 -08:00 |
|
snipe
|
9226c8292d
|
Fixed typos in comments
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-11 12:02:14 -08:00 |
|
snipe
|
5fafa81dc1
|
Forgot components
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-11 11:57:29 -08:00 |
|
snipe
|
b30d1dce89
|
Removed selectlist
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-11 11:55:24 -08:00 |
|
snipe
|
2dad27eed6
|
Added additional gate for selectlists
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-11 11:46:14 -08:00 |
|
snipe
|
f5ffda8053
|
Ahem.
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-10 22:43:51 -08:00 |
|
snipe
|
ed931ef0cd
|
Merge pull request #10654 from inietov/fixes/trying_to_get_property_checkin_email_of_non-object
Fixes ErrorException: Trying to get property 'checkin_email' of non-object [sc-17568]
|
2022-02-10 12:23:50 -08:00 |
|
Ivan Nieto Vivanco
|
f36de6c670
|
Validates if model and model->category exist before return the checkin_email property
|
2022-02-10 13:53:49 -06:00 |
|
Ivan Nieto Vivanco
|
bf4ee18123
|
Validates if model and model->category exist before return the checkin_email property
|
2022-02-10 11:58:55 -06:00 |
|
snipe
|
70af10ae6c
|
Merge pull request #10640 from JonathonReinhart/10552-add-checkin-api-date
Fix #10552: Add checkin_at parameter to /hardware/:id/checkin API
|
2022-02-10 09:54:20 -08:00 |
|
snipe
|
b9a8d45c07
|
Better messaging
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-09 16:30:42 -08:00 |
|
snipe
|
7794c2f44b
|
Check that the fieldset exists before trying to detach it from the fieldset
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-09 16:16:16 -08:00 |
|
snipe
|
eedc14401a
|
Switch to searching on semicolon instead of &
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-09 15:55:22 -08:00 |
|
snipe
|
4e14d70427
|
Added jobtitle to unescaper
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-09 15:50:44 -08:00 |
|
snipe
|
2a71690aaf
|
Added license_name to unescaper
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-09 15:17:57 -08:00 |
|
snipe
|
e4da00ca82
|
Catch potential validation errors on unescape tool
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-09 15:09:49 -08:00 |
|
snipe
|
4fd14e5859
|
Added slightly more output because wtf?
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-09 15:05:28 -08:00 |
|
snipe
|
441f1fbb64
|
Remove html_entities_decode restriction
Signed-off-by: snipe <snipe@snipe.net>
|
2022-02-09 14:56:36 -08:00 |
|
snipe
|
d06e3dd892
|
Merge branch 'master' of https://github.com/snipe/snipe-it
|
2022-02-09 14:40:33 -08:00 |
|
snipe
|
6b25b53462
|
Merge pull request #10628 from inietov/fixes/default_values_dont_allow_checkbox_radio
Fixes #10299 Default Values do not allow Checkbox/Radio Buttons
|
2022-02-09 14:39:46 -08:00 |
|
Ivan Nieto Vivanco
|
6d79c9f3e2
|
Save the default values for custom fields with same format than Assets do for actual values
|
2022-02-09 13:41:33 -06:00 |
|
Ivan Nieto Vivanco
|
a36957dd77
|
Finish the implementation of custom fields default values for checkboxes
|
2022-02-09 13:12:42 -06:00 |
|
Ivan Nieto Vivanco
|
2f3499e4b9
|
Show checkboxes a little less assy, actually save the data checked by them
|
2022-02-09 10:49:10 -06:00 |
|
Jonathon Reinhart
|
3536d08477
|
Add checkin_at parameter to /hardware/:id/checkin API
Fixes #10552
|
2022-02-08 20:23:09 -05:00 |
|
Brady Wetherington
|
c300e7c7f6
|
Remove extraneous backslash
|
2022-02-08 12:23:15 -08:00 |
|
Brady Wetherington
|
fb890fbc30
|
Properly alert when invalid JSON is submitted to something that wants JSON
|
2022-02-08 12:22:59 -08:00 |
|
Brady Wetherington
|
9a66f6a254
|
Remove extraneous backslash
|
2022-02-08 12:09:40 -08:00 |
|
Brady Wetherington
|
5e94726ec1
|
Properly alert when invalid JSON is submitted to something that wants JSON
|
2022-02-08 12:05:05 -08:00 |
|
Ivan Nieto Vivanco
|
413e44be2f
|
Add custom date to checkin actionlogs and show it in the history of the asset tab
|
2022-02-08 11:58:23 -06:00 |
|
Ivan Nieto Vivanco
|
d71aa859fc
|
Add custom date to checkin actionlogs and show it in the history of the asset tab
|
2022-02-08 11:43:24 -06:00 |
|