snipe
3ecaa99990
Fixed only undeployed assets in checkout to list
2017-11-03 11:33:36 -07:00
Kasey
ab9729c39a
fix to availCount() (licenseSeatRelation) ( #4378 )
...
`license_seats`.`user_id` represents an overall "owner" of the license
2017-11-03 09:51:15 -07:00
snipe
104cc2bf11
Make sure the seat hasn’t been deleted
2017-11-02 21:07:59 -07:00
snipe
0c794c103b
Return an integer value for free seats if null
2017-11-02 20:23:04 -07:00
snipe
53175d5035
Fixed sorting issue on company/manufacturer/supplier
2017-11-02 20:01:39 -07:00
snipe
0bd09f9c46
Added sorting on available and total seats
2017-11-02 19:37:30 -07:00
snipe
27d795508d
Fixed n+1 query, changed checkout behavior to just ask for a license ID
...
We’re offloading the freeSeat() to the checkout page now
2017-11-02 19:16:09 -07:00
snipe
368ac5b85d
First stab at handling the n+1 issue on licenses
2017-11-02 18:20:42 -07:00
snipe
f47075c180
Removed depreciation from Licenses transformer
2017-11-02 17:18:53 -07:00
snipe
85624205b4
Updated Lang::get to trans
2017-11-02 17:12:51 -07:00
snipe
c9c5ce6ee0
Return Deleted User if the user is invalid for some reason
2017-11-02 16:20:01 -07:00
snipe
950519be5d
Added a few more table aliases for ordering complex results
2017-11-02 13:47:37 -07:00
snipe
87affa40ed
Fixes filtering on status label
2017-11-02 13:01:09 -07:00
snipe
28a4293a0b
Fixed #4370 - user’s listing flashing then no results
2017-11-02 11:19:34 -07:00
snipe
f095f1807c
Eager load userloc
2017-11-02 11:06:15 -07:00
snipe
e08911ab8f
Removed nonce for now
...
There is a dependency in a package where we can’t edit the script tags to add the nonce
2017-11-02 10:57:05 -07:00
snipe
ca6dc5c2b5
Eager load user location
2017-11-02 10:56:36 -07:00
snipe
3695e118f4
Fixed erroneous call to assets.category in filter scope
2017-11-02 08:06:10 -07:00
snipe
f43692938b
Fixed slug call in asset models image
2017-11-02 08:02:51 -07:00
snipe
da56a253bc
Added checkout requests method
2017-11-02 04:21:57 -07:00
snipe
a844d5b018
Added pagination, nicer formatting for requested assets
2017-11-02 04:17:14 -07:00
snipe
ba9bb470eb
Added imageSrc presenter to assets
2017-11-02 04:15:24 -07:00
snipe
41452450b3
Added imageSrc presenter
2017-11-02 04:15:09 -07:00
snipe
4f008e118f
Fixed search string on suppliers selectlist
2017-11-01 21:55:17 -07:00
snipe
e11f9313f0
Fixed #4360 - better output if backup fails
2017-11-01 14:12:18 -07:00
snipe
d36e8cfbd2
Dashbpoard pie fixes
2017-11-01 13:27:59 -07:00
snipe
4cdcbc97ee
Fixed varname issue on old image delete for manufacturers
2017-11-01 13:10:56 -07:00
snipe
feb2f5b076
Fixed #4356 - removed reference to old assetloc
2017-10-31 18:20:03 -07:00
snipe
6186c324b5
Misc assetLoc error checks
2017-10-31 08:47:40 -07:00
snipe
37868cd70e
Added warranty and expiration to list view
2017-10-31 07:05:15 -07:00
snipe
32b2f77ad9
Fixed issue where we tried to call the audit log even if the asset wasn’t valid
2017-10-31 05:41:06 -07:00
snipe
472a5b9f69
Removed extra log on API asset create
2017-10-31 05:38:52 -07:00
snipe
121e158f39
Change method name from userloc to location
...
This needs to be changed in more places though
2017-10-31 05:22:57 -07:00
snipe
f4e7bfc28d
Null custom field if field exists but is empty
2017-10-31 05:22:21 -07:00
snipe
0089f73686
Moved trait to single line
2017-10-31 05:21:55 -07:00
snipe
0f4c05c5d0
Remove commented code
2017-10-31 05:02:46 -07:00
snipe
7f1b7be416
Rolling back prepending models to sort
2017-10-30 21:26:25 -07:00
snipe
02720f225c
Fixed sorting issue in asset models when ordering by manufacturer
2017-10-30 20:51:01 -07:00
snipe
546c3e50fa
Fixed updating the assigned assets location if user’s location changes
2017-10-30 19:33:52 -07:00
snipe
7f1b962e56
Improved use of de-normed locations fields
2017-10-30 19:21:35 -07:00
snipe
4eee7f8d97
Added address for users - fixes #4323
2017-10-30 18:57:00 -07:00
snipe
0fd0e3a8b4
Returns null for order number if it’s blank
2017-10-28 15:53:22 -07:00
snipe
9687a78981
Fixed a few inconsistencies in the API results (null vs empty string)
2017-10-28 15:17:36 -07:00
snipe
2244a4b3cf
Fix peresenter for assigned
2017-10-28 15:17:09 -07:00
snipe
39c68214e9
More ajax menu fixes
2017-10-28 11:17:52 -07:00
snipe
6a3716a06d
Added new ajax dropdown menus for components, consumables, etc editing/creating
2017-10-28 09:21:39 -07:00
snipe
2172e6cc25
Added suppliers ajax list
2017-10-28 08:37:47 -07:00
snipe
108ac79442
Added update to asset location id on checkout/checkin
2017-10-28 07:38:36 -07:00
snipe
bd48ae96c2
Update location on checkin if one is given
2017-10-28 07:28:35 -07:00
snipe
c37fa44f72
Use ther morphto assigned
2017-10-28 07:12:22 -07:00
snipe
daaf98783f
Fixes status display in listing
2017-10-28 07:11:06 -07:00
snipe
03f6211582
Make notes null if empty
2017-10-28 07:01:06 -07:00
snipe
4f1747023a
Seed with demo images
2017-10-28 05:46:43 -07:00
snipe
5278dac2b0
Eager loading assignedTo - I have no idea why this works
2017-10-28 03:50:02 -07:00
snipe
890012f6c4
Update references to assetloc to location
2017-10-28 02:58:38 -07:00
snipe
3991f79115
Use new location method for hardware view
2017-10-28 02:37:59 -07:00
snipe
3064b3f80e
Updated availableForCheckout() method to be clearer
2017-10-28 02:31:54 -07:00
snipe
df430a2263
Removed assignedTo eager load for now - it’s not working
2017-10-28 02:31:36 -07:00
snipe
277e49468b
Added deleted at to API
2017-10-28 02:31:13 -07:00
snipe
d76f858dcd
Try eager loading assignedTo
2017-10-28 01:50:58 -07:00
snipe
7a543fa6d5
Use new location method on asset API
2017-10-28 01:49:13 -07:00
snipe
ce5ccc31f0
Added location method, fixed assetLoc
2017-10-28 01:48:27 -07:00
snipe
2d758be0e1
Merge branch 'develop' of github.com:snipe/snipe-it into develop
2017-10-27 18:01:46 -07:00
snipe
f49ecbdb61
Code cleanup
2017-10-27 18:01:42 -07:00
Daniel Meltzer
3cea12565b
Add missing policies ( #4330 )
...
* Add Authorizable trait and interface to our user model so we have access to User::can/User::cant. We should take a look at where else our user model has diverged from Larvel since it was created...
* Policy cleanup/fixes.
This commit adds policies for the missing backend/"settings" areas. The
permissions were implemented a while back but the policies did not, so
authorizing actions was failing.
In addition, this condenses a lot of code in the policies into base
classes. Most of the files were identical except for table names, so we
move all of the checks into a base class and override the table name in
each policy.
* Use a better name and permission for the check in the default layout.
2017-10-27 18:01:11 -07:00
snipe
b1ac024725
Refined upload code
2017-10-27 17:40:10 -07:00
snipe
ec68bd7842
Small refactoring for code quality
2017-10-27 17:38:11 -07:00
snipe
a224904ade
Removed uncessary code
...
This is already handled in the env
2017-10-27 17:00:33 -07:00
snipe
cb3b294baa
Clesned up status label model for code quality
2017-10-26 22:54:07 -07:00
snipe
0788347990
Cleaned up status label method
2017-10-26 22:49:57 -07:00
snipe
7496a902bd
Removed unused getDataView controller method
...
This is all API based now
2017-10-26 22:39:41 -07:00
snipe
f2d04be8fe
Remove unused methods in Settings API controller (for now)
2017-10-26 22:35:01 -07:00
snipe
f2499fc7d2
Removed else condition on custom fields API for code quality
2017-10-26 22:33:40 -07:00
snipe
00d910ddbc
Added manufacturers and categories select lists
2017-10-26 22:09:08 -07:00
snipe
6bcb55a129
Slight tweak to model name presenter
2017-10-26 21:50:39 -07:00
snipe
a99e09e5e3
Removed extra with() calls, since we load those up via the select2 lists now
2017-10-26 21:50:27 -07:00
snipe
7d11cb0748
Added selectlist transformer for select2 API calls
2017-10-26 21:50:01 -07:00
snipe
bdb95e4e3d
Added companies ajax select2 endpoint
2017-10-26 16:37:41 -07:00
snipe
b71d0ab484
Fixed order number and warranty bug in importer
2017-10-26 16:13:35 -07:00
snipe
ea07517ad5
Added more ajax select2 boxes to checkouts, remove helper ->with() methods
2017-10-26 03:43:28 -07:00
snipe
82690e1fd7
Integrate ajax select2 menus in all asset checkouts
2017-10-26 02:28:17 -07:00
snipe
75b527ab59
Features/image uploads ( #4320 )
...
* Locations API support for image
* Added manufacturers API support for image
* Added manufacturers API support for image
* Added image support for locations add/update
* Added manufacturer image upload support to controller
* General image string
* Added blade support for image uploads/delete image
* Added $request support (from Input::)
* Added image support in API transformers
* Added image to Manufacturers presenter for data table
* Migration to create image fields
* Ignore the contents of the new image directories
* Create new image upload directories
* Created components/consumables uploads directory
* Fixed missing textSearch scope from companies
* Added ignore for companies uploads directory
* Added blade support for image upload
* Fixed path to upload directory on edit
* Added company image upport to transformers, controllers
* Added image support for categories
* Added support for images in Departments
* Added support for image in Consumables
* Added image support for components
2017-10-25 22:35:58 -07:00
snipe
b083541723
Fixed docblock copypasta
2017-10-25 20:23:59 -07:00
snipe
0d34cc704a
Added controller for state-saver for sidenav
2017-10-25 20:10:59 -07:00
snipe
e8847753f4
Fixed importer using previous row’s custom field
2017-10-25 18:16:28 -07:00
snipe
a305b1ea2d
Merge branch 'develop' of github.com:snipe/snipe-it into develop
2017-10-24 19:24:39 -07:00
snipe
17d58d9cc5
Added snazzy rich user selection menu
...
TODO:
- Abstract this out so it can be used by other select2 menus
- Write a select2 transformer to standardize output
2017-10-24 19:24:35 -07:00
snipe
e0fe383815
Removed debug message in SaveUserRequest
2017-10-24 19:18:53 -07:00
snipe
7140efc561
Use the transformers, Luke
2017-10-24 19:18:20 -07:00
snipe
99be54fd96
Fixed success message on saving new user
2017-10-24 19:17:30 -07:00
snipe
35da7906cc
Fix standardized exception formatter for correct payload
2017-10-24 17:57:49 -07:00
snipe
8a9960f830
Fixed missing break that would override password requirement
2017-10-24 16:56:46 -07:00
snipe
715da63581
Check that model name exists before trying to display it
...
I don’t know why this would ever trigger, but a user in Gitter complained earlier today, so… ¯\_(ツ)_/¯
2017-10-24 16:53:46 -07:00
Brady Wetherington
ad32bae62f
Fix to bad relation definition in Location. ( #4306 )
2017-10-24 16:52:45 -07:00
snipe
bbda0dc3b4
Always return an avatar, and set a fun default
2017-10-24 13:02:30 -07:00
snipe
dc805dd9b1
Added user avatars to listing
2017-10-24 09:51:07 -07:00
snipe
7d64ab3158
Fixes #4294 - pass correct group ID for group user listings
2017-10-24 04:39:47 -07:00
snipe
3799ab87ed
Fixed search query for default sorting
2017-10-23 20:10:37 -07:00
Nicolai Essig
3a302fe2d7
ref #2737 prevent assets with "rtd_location_id" null values to be removed on location sort ( #4283 )
2017-10-23 18:28:06 -07:00
snipe
fc644925ea
Fixes #4291 - adds phone to user listing
2017-10-23 14:21:51 -07:00
Brady Wetherington
8ac57d0121
Need to prefix status_id with assets.
for uniqueness ( #4279 )
2017-10-20 17:37:46 -07:00
Brady Wetherington
189574377a
Add 'where' clause to hasManyThrough relationship. ( #4276 )
2017-10-20 16:58:39 -07:00
snipe
22e13cd4d2
Allow sorting on asset counts, disable delete button if the user has items checked out to them
2017-10-19 17:15:21 -07:00
snipe
4215a3257b
Fixes #1044 - adds suppliers and image to accessories ( #4266 )
...
* Ignore accesories uploads
* API: Allow searching accessories by supplier id
* Adds suppliers and image upload to accessories
* Allow sorting by counts for suppliers
* Validate supplier image uploads
* Remove purchase_date from protected accessory array, it was converting it to datetime in datepicker
2017-10-19 16:25:24 -07:00
snipe
1f247ff541
Don’t let the user checkout an asset to itself
...
(We should consolidate that AssetCheckoutRequest for the API)
2017-10-19 15:51:55 -07:00
snipe
e185dc68af
Fixes #4240 - allows admins to use custom password reset URL
2017-10-19 12:22:27 -07:00
snipe
54000ff69f
Allows sorting by number of assets, etc in category
2017-10-19 11:48:09 -07:00
snipe
f6a38e848a
Allows sorting by whether or not the category requires acceptance
2017-10-19 11:44:42 -07:00
snipe
7e8d670f81
Disable delete buttons if there are assets, etc
2017-10-19 11:41:35 -07:00
snipe
a9753eb646
Include asset count in status labels overview
2017-10-19 10:48:15 -07:00
snipe
707c4db881
API: Check there are no assets associated before allowing delete
2017-10-19 10:39:08 -07:00
snipe
d1de34394e
Removed stupid count method
2017-10-19 10:37:30 -07:00
snipe
7153013fb0
Fake sending the test email if the app is in demo mode
2017-10-19 08:33:46 -07:00
snipe
2b826c3adc
Merge branch 'features/mail_test_button' into develop
2017-10-19 08:19:24 -07:00
snipe
cd193ce8bb
Fixes #4036 - adds test email button to general settings
2017-10-19 08:18:56 -07:00
snipe
cb50142ba3
Update @thakilla as a contributor
2017-10-19 06:16:03 -07:00
Nicolai Essig
4bc551db82
ref #4042 scale barcode with label size ( #4258 )
2017-10-19 06:08:01 -07:00
snipe
ae567c08db
Fixes incorrect language reference for consumables on checkout if consumable doesn’t exist
2017-10-19 03:44:01 -07:00
snipe
13586be6b0
Fixed load error if license is invalid
2017-10-19 03:37:27 -07:00
snipe
4d3d19ca2b
Fixes older route reference in consumables
2017-10-19 02:07:31 -07:00
snipe
c5893b4445
Fixes #4249 - display deployed location in listing
2017-10-19 01:30:40 -07:00
snipe
3b012f2827
Some advanced search query tweaks
2017-10-18 10:07:35 -07:00
snipe
5519e2d4ae
Fixes custom fields sorting on asset listings
...
I need a silkwood shower :(
2017-10-18 09:27:34 -07:00
snipe
a3139c6fc6
Fix accessories route for invalid accessory ID
2017-10-18 08:53:25 -07:00
snipe
c0e50be03e
Duh. Helps if you actually assign the array first.
2017-10-18 08:45:05 -07:00
snipe
447833c996
Only try to process model bulk editing if at least one model was selected
2017-10-18 08:15:54 -07:00
snipe
809e310565
Recrypt the LDAP password properly
...
Older installs should add a line to their .env:
`LEGACY_CIPHER=rijndael-256`
2017-10-18 08:15:23 -07:00
snipe
68f6385eba
Fixes 500 in bulk checkout if no asset is selected
2017-10-18 07:15:16 -07:00
snipe
9e39abcc32
Merge branch 'develop' of github.com:snipe/snipe-it into develop
2017-10-18 06:24:41 -07:00
snipe
5cd2857d5d
Use footer sumformatter for cost totals
2017-10-18 06:24:36 -07:00
snipe
d9135a8aac
Disallow deleting suppliers with associated assets, licenses or maintenances
2017-10-18 05:47:20 -07:00
Tõnis Ormisson
a4eeff01f0
FIXED upgrade Recrypt not working with changed cipher ( #4245 )
...
* FIX legacy cipher change
* FIX Recrypt Custom fields column names
* FIX ReCrypt Clean un-needed code
2017-10-18 05:43:54 -07:00
snipe
eedbe468ac
Fix licenses not saving supplier id on edit
2017-10-18 05:43:15 -07:00
snipe
ea63ced2bd
Fixes table alias bug in complex queries for Laravel
2017-10-18 01:21:08 -07:00
snipe
6bd49bfb72
Fixes #4191 - user search
2017-10-18 01:20:50 -07:00
snipe
c069829b33
Fixes #906 - groups view
2017-10-17 21:43:57 -07:00
snipe
aa7091d962
Fixes #4226 - adds log_max_files to app config and sample env
2017-10-17 20:04:07 -07:00
snipe
1d5fb52bfc
Fix for LDAP where location ou is not null but blank
2017-10-17 16:59:50 -07:00
snipe
dea42db18b
Reversed order of withTrashed for deleted asset QR codes
2017-10-17 16:21:50 -07:00
snipe
a1f5e11517
Fix for broken QR code on deleted assets
2017-10-17 16:01:53 -07:00
snipe
160fd1c86a
Added setting to let admin decide whether footer text should link back to site
2017-10-17 13:54:03 -07:00
snipe
b46cbac911
Fixes #4230 - adds model name and manufacturer to emails
2017-10-17 13:30:32 -07:00
snipe
e9c3d6bfb7
Full text search fixes - addresses laravel bug :(
2017-10-17 12:48:18 -07:00
snipe
e7fe91c9d4
Depreciation view
2017-10-17 11:20:05 -07:00
snipe
37df934e97
Fixes #4220 - allow nullable for completion date
2017-10-16 18:32:48 -07:00
snipe
6517a95d45
Check if there are any custom fields before trying to loop through them
2017-10-16 15:29:19 -07:00
snipe
4b84a0c916
Tidying some of the LDAP UDN logic
2017-10-16 15:29:06 -07:00
snipe
cbe008d52f
Fix assetLoc to assetloc because reasons?
2017-10-16 09:08:08 -07:00
snipe
45c2af80a3
More LDAP testing US refinements
2017-10-16 09:00:51 -07:00
snipe
1fbf3753bc
More small LDAP test improvements
2017-10-16 07:07:21 -07:00
snipe
bcf435f625
Try for better error reporting on LDAP fail
...
Sorry for all the commits on this - my local LDAP isn’t working and I can’t figure out why, so no easy way to test locally
2017-10-16 06:46:33 -07:00
snipe
b107280b7b
Slightly nicer UI for LDAP login test
2017-10-16 06:39:36 -07:00
snipe
f1a6926ad9
LDAP test login
2017-10-16 06:34:04 -07:00
snipe
ba7b9d8168
Removed stray foo
2017-10-16 05:54:33 -07:00
snipe
59a126c47c
Small tweaks to LDAP test
2017-10-16 05:52:18 -07:00
snipe
56cbc005ae
Fixes expected checkins name in console kernel
2017-10-16 05:01:15 -07:00
Daniel Meltzer
22e9246031
Fix more old routes. Should fix #4216 ( #4217 )
2017-10-15 23:32:40 -07:00
snipe
fa95f6d836
Another attempt for #4165
2017-10-11 15:36:47 -07:00
snipe
6d4574130f
Clearer indication of whether or not the user will be emailed a eula
2017-10-11 14:44:25 -07:00
snipe
485b6397d0
Possible (crummy temp) fix for #4165
2017-10-11 14:42:11 -07:00
snipe
93990327de
Hopefully fixes #4163
2017-10-11 14:18:08 -07:00
snipe
36cbffa183
Fixes bug where custom fields would not store new name in custom fields table on edit
2017-10-11 13:09:10 -07:00
snipe
b6a1e0d12f
Call migrate before passport install
2017-10-11 12:42:31 -07:00
snipe
f56eb16941
More specific order by clause for drilling down on order number
2017-10-11 12:29:08 -07:00
snipe
64e7ab3a12
Fixes #4182 - empty names for assets when checking out to asset
2017-10-11 01:31:37 -07:00
snipe
f64c02ce12
Fix for ambiguous query on models
2017-10-10 23:12:16 -07:00
snipe
bed7b29417
Fixes group search
2017-10-10 22:59:32 -07:00
Richard Hofman
adca7cb0c5
Fix LDAP location sync issue in #3993 ( #4181 )
...
* Ensure locations with the most specific OUs take precedence during user assignment.
* Save 'ldap_ou' Location attribute during creation.
2017-10-09 13:06:47 -07:00
snipe
e29d878d4f
Remove unused method arguments
2017-10-07 15:09:50 -07:00
snipe
d4e3ea1412
Derp
2017-10-07 15:07:31 -07:00
snipe
c5462c5f1f
Not sure why this isn’t working… commenting it out for now
2017-10-07 14:52:00 -07:00
snipe
8c406e8e55
Additional auth policies
2017-10-07 14:49:47 -07:00
snipe
6e33f36595
Set snipe-logo as default
2017-10-07 14:49:36 -07:00
snipe
9dc79f7165
Demo Settings reset artisan command
...
We’ll set this as a cron job to reset the language back to english
2017-10-07 07:43:57 -07:00
snipe
a69a939034
Small barcode tweaks
2017-10-07 07:15:28 -07:00
snipe
834c6ad8f9
Removed extra space
2017-10-07 06:56:47 -07:00
snipe
2ce48fbc7e
Use components transformer in API method
2017-10-07 06:56:39 -07:00
snipe
5d18937e94
Standardized component API output
2017-10-07 06:56:18 -07:00
snipe
b3186ba5ea
Removed old getDataTable methods
...
These are no longer used because of the API
2017-10-07 06:56:02 -07:00
snipe
a03207e5b4
Show license notes
2017-10-07 04:42:53 -07:00
snipe
e2f4685a55
Added notes back to list view
2017-10-07 03:36:50 -07:00
snipe
064a4ebe33
Ability to skip deleting/generating new users
...
This will behave unpredictably if there is not a user id 1
2017-10-07 00:02:37 -07:00
snipe
a84da88114
Demo seeder
2017-10-06 22:58:00 -07:00
snipe
282b3b5b0a
Remove catch-all “deployed” from pie chart
2017-10-06 18:41:10 -07:00
snipe
1dcff8d463
Remove eager loading on pie
...
This was causing memory issues for large asset sets
2017-10-06 18:15:01 -07:00
snipe
e461c25428
Apply model image fix to update method
2017-10-06 17:03:51 -07:00
snipe
554ea8bb95
Fixed asset model image validation
2017-10-06 16:56:43 -07:00
Richard Hofman
f2be409914
LDAP sync improvements and DB query fix. ( #4148 )
...
* Set 'ldap_ou' Location field to NULL when an empty string is submitted.
* Consolidate LDAP user import logic in LdapSync.php.
2017-10-06 16:15:14 -07:00
snipe
f580e20bc3
Fixed custom fields filter for advanced search
2017-10-05 23:09:02 -07:00
snipe
f6d8642799
Fix $search variable to $search_var for new filter
2017-10-05 00:35:37 -07:00
snipe
f66e222f3d
Fixes #4132 - associated accessory users
2017-10-03 21:03:00 -07:00
snipe
6dd4282f1f
Fixes #4130 - show deleted asset models
2017-10-03 17:53:08 -07:00
snipe
3f44987799
Small logo size tweaks
2017-10-03 14:15:03 -07:00
snipe
512632ce60
Make the export button contextual for requested status
2017-10-03 12:50:18 -07:00
snipe
54671af7f0
Small export assets fix
2017-10-03 11:49:41 -07:00
snipe
8e73cacf4e
Fixes custom report to include assigned to names, etc
2017-10-03 10:38:28 -07:00
snipe
c721fdd793
Merge branch 'develop' of github.com:snipe/snipe-it into develop
2017-10-03 08:46:25 -07:00
Daniel Meltzer
d119372ff0
Fix License Import. ( #4121 )
...
The license name is not unique, so keying by license alone was causing issues. Match using name + serial instead.
2017-10-03 08:46:06 -07:00
snipe
3a470ce789
Only report exceptions we want to see
2017-10-03 07:28:00 -07:00
snipe
3687cbfdb3
Added rollbar support
2017-10-02 20:27:45 -07:00
snipe
8a7abba427
Slash url
2017-10-02 17:21:18 -07:00
snipe
9df648b428
Fix Session path
2017-10-02 17:19:22 -07:00
snipe
ff38cdd09b
Comment out the nullable middleware until we have a chance to check all model validators
2017-10-02 16:36:43 -07:00
snipe
59225701b5
Redirect to previous after login
2017-10-02 16:00:42 -07:00
snipe
aab635154a
Default to turning CSP off until we can fix vue/CSP issues
2017-10-02 13:29:14 -07:00
snipe
e26d038589
Fixed license checkin form UI
2017-10-01 15:08:32 -07:00
snipe
afc8133acf
URL nullable validation isn’t working in Laravel 5.4?
2017-10-01 14:40:13 -07:00
snipe
abe19a6311
Merge branch 'develop' of github.com:snipe/snipe-it into develop
2017-10-01 14:33:02 -07:00
snipe
07359c76ad
Fixes #4094 - more nullables
2017-10-01 14:32:47 -07:00
Daniel Meltzer
c2616412c0
Add laravel routes to javascript ( #4092 )
...
* Add laravel routes to javascript
This will clean up a lot of passing of urls. Adds a route() helper and
everything...
This commit also moves the customfield fetching to only be fetched once
and shared with each file, rather than once for each file.
* Try to fix travis unit test things.
* Downgrade doctrine/inflector for php5
* Attempt to occasional seeder issues on travis if the asset does not generate validatable data.
* Update sql dump for functional tests.
* Try to fix api tests.
2017-10-01 12:59:55 -07:00
Daniel Meltzer
23ca2d9a0b
Minor fixes ( #4091 )
...
* Fix old urls.
Still had some /admin/ urls floating around, which was causing bad
redirects in some instances. Should fix #4085
* The modal seems to be confusing license upload. be more explicit in the route we redirect to.
* Fix #4039 . Use proper methods for location assets.
This also fixes a bunch of n+1 issues in the transformer. Also: curious
to know what Location::assets() does, because it doesn't do what I want
it to :)
2017-10-01 12:57:04 -07:00
snipe
ba793355cb
Nullable crap. Again.
2017-09-29 17:50:52 -07:00
Daniel Meltzer
655ca78633
Adjust the import controller to return a url to the process path to enable processing an uploaded file without refresh. ( #4080 )
2017-09-29 17:49:35 -07:00
Daniel Meltzer
bbffde47f7
Remove conditional related to no longer existant testrun option. ( #4079 )
2017-09-29 17:31:39 -07:00
snipe
be7598b279
Fixes all assets showing as unassigned in license checkout
2017-09-29 17:14:38 -07:00
snipe
9301c56a77
Fixes #4069 - include request handler
2017-09-29 16:17:35 -07:00
snipe
e37503c734
Fixes #4075 - this is janky and should be revisited
2017-09-29 16:09:24 -07:00
snipe
43ff66e4d9
More UI tweaking for meta statuses
2017-09-29 15:24:33 -07:00
snipe
4eda2a2f96
*ahem*
2017-09-29 12:03:12 -07:00
snipe
fe1975067a
Hopefully clearer status label meta info
2017-09-29 12:03:02 -07:00
snipe
efd71f8bfe
For #3998 - Disable CSP if debug=true
...
To avoid all the nonce hell from debugbar
2017-09-29 04:53:09 -07:00
snipe
05a8ba9a8e
Fix weird url if license checkout fails
2017-09-29 04:37:33 -07:00
snipe
9ce2d1f560
Merge branch 'csp-middleware' into develop
2017-09-29 04:14:33 -07:00
snipe
2e76620cf8
More specific required check
2017-09-29 03:44:23 -07:00
snipe
a4b30279ee
Fixes #4067 - Make unrequired custom fields nullable
2017-09-29 03:30:13 -07:00
snipe
faf3802971
Fixes #4011 - do not send email to user on license checkout
2017-09-29 02:00:49 -07:00
snipe
ba8bcce8eb
Hopefully fixes #4020
2017-09-29 01:21:08 -07:00
snipe
aab409dec2
Fixes #4061 - bulk checkout error
2017-09-28 22:22:21 -07:00
snipe
4d32f2b337
Fixes #4059 - accessories view
2017-09-28 21:18:00 -07:00
snipe
0e29744ec2
Don’t try to send an email if the user doesn’t have an email address
2017-09-28 20:57:33 -07:00
snipe
51236a2ad9
Fixes #4056 - check for assets before deleting user
2017-09-28 19:57:52 -07:00
snipe
46d87849f4
Added content security middleware
2017-09-28 19:45:15 -07:00
snipe
b60febeea2
Removed space in XSS header because safari was getting angry
2017-09-28 18:45:54 -07:00
snipe
9b84a0d516
*eyeroll*
2017-09-28 17:34:47 -07:00
snipe
1775995f26
Is this space necessary? Getting weird results from netsparker
2017-09-28 17:25:04 -07:00
snipe
26a7701cda
Added referrer-policy header
2017-09-28 17:12:58 -07:00
snipe
a34085f1d9
Added mode=block to XSSProtect header
2017-09-28 16:28:27 -07:00
Daniel Meltzer
af19e5d976
Fix old route ( #4053 )
...
Looks like we missed in the v4 port. Fixes the unrelated issue in #4052
2017-09-28 16:02:50 -07:00
snipe
3d7277398c
Fixes #4057 - sig file in lightbox
2017-09-28 15:13:05 -07:00
snipe
a7ad48a02a
Make fields nullable for licenses
2017-09-27 22:11:20 -07:00
snipe
0fb4ff77f4
Restoring older SnipeModel attribute setters
...
In case needed by API - needs investigation
2017-09-27 16:39:20 -07:00
snipe
ac83dba2bb
Fixes #4034 - save login note
2017-09-27 16:35:54 -07:00
snipe
fc96fa756e
Fix redirect default on password reset
2017-09-27 16:23:21 -07:00
snipe
ea9a502152
Added empty regsitration controller
...
When using the default Laravel auth routes, it expects a registration controller, even though we don’t have a concept of registration. This blank controller just prevents route caching from throwing errors.
2017-09-27 16:23:01 -07:00
snipe
ec8a3d2e56
Fixes #4027 - proper redirect on fieldset delete
2017-09-27 16:02:29 -07:00
snipe
ecf041fa10
Fixes #4043 - standardize groups API response
2017-09-27 15:18:29 -07:00
snipe
0ab9bc1db8
Added normalization midddleware, removed
2017-09-27 15:18:05 -07:00
snipe
73e788b94b
Make min_amt fillable
2017-09-27 14:50:56 -07:00
snipe
e91a537552
Use more modern Request handler
2017-09-27 14:50:48 -07:00
snipe
ef8c1abf28
Fixes #3113 and #4040
2017-09-27 14:50:17 -07:00
snipe
bd0498aa69
Fixes #4016 - signature file missing from history tab
2017-09-27 12:58:08 -07:00
snipe
e27e1a78c3
Fix for case where a fieldset is assigned to a model, but no fields are assigned
2017-09-26 16:01:23 -07:00
snipe
4b9bfc178d
One more try on #4001
2017-09-25 22:05:57 -07:00
snipe
f2ee7dcabb
Fixes #4001 - license checkout not working
2017-09-25 21:40:43 -07:00
snipe
26203801f6
Fixes #4009 - zip not populating on locations listing page
2017-09-25 20:45:05 -07:00
snipe
c3afbc0e53
Run backups before purging and importing
2017-09-25 15:00:23 -07:00
snipe
38326314ca
Merge branch 'develop'
2017-09-25 11:53:33 -07:00
snipe
865950e766
Fixes #4000 - user_id blank
2017-09-25 11:53:10 -07:00
snipe
d49b67d033
Fix for assigned user location
...
Was breaking requestable page
2017-09-25 11:26:04 -07:00
snipe
6b63808e34
Fix for asset location null on user
2017-09-25 11:25:15 -07:00
snipe
34dfcb5add
Merge branch 'develop'
2017-09-22 17:23:38 -07:00
snipe
30019a144a
Disable login note editing on demo
2017-09-22 17:23:22 -07:00
snipe
b29d7beb3a
Merge branch 'develop'
...
# Conflicts:
# .gitignore
# Dockerfile
# README.md
# app/Http/Controllers/AccessoriesController.php
# app/Http/Controllers/AssetMaintenancesController.php
# app/Http/Controllers/AssetsController.php
# app/Http/Controllers/ConsumablesController.php
# app/Http/Controllers/GroupsController.php
# app/Http/Controllers/LicensesController.php
# app/Http/Controllers/ReportsController.php
# app/Http/Controllers/UsersController.php
# app/Http/routes.php
# app/Models/Depreciation.php
# app/Models/Location.php
# config/version.php
# resources/views/account/view-assets.blade.php
# resources/views/hardware/edit.blade.php
# resources/views/hardware/view.blade.php
# resources/views/partials/modals.blade.php
# resources/views/reports/custom.blade.php
# snipeit.sh
2017-09-22 16:12:18 -07:00
snipe
998c4a5fe5
Make model number nullable
2017-09-22 04:43:28 -07:00
snipe
126a5671fe
Set timeout for LDAP server
2017-09-18 19:11:38 -07:00
Daniel Meltzer
a5764351f7
Migrate weird assigned_type issues, Issue #3972 ( #3973 )
...
For a while, prior to 987536930
, we did not null assigned_type on
checkin. This migration manually nulls all assigned_type fields if
assigned_to is unset. Add a test to AssetTest for this as well...kind
of. We need to extract an Asset::checkin() method for 4.1 that mirrors
Asset::checkOut() to really test this.
This also fixes a separate (but related) issue. The Asset importer did
not set assigned_type when importing and creating users. In this
instance, we assume that if assigned_to is set and assigned_type is not,
then the item was checked out to a user and update the DB accordingly.
Also add a check in ImporterTest for this issue.
2017-09-18 16:40:13 -07:00
Daniel Meltzer
922d6937ae
Custom field import repair ( #3968 )
...
* There is no notes field on accessories. Fixes Importer Test.
* Fix notification test. We should see a checkout not allowed exception when trying to check out to a location if the asset requires acceptance.
* Fix Custom field import.
Add a test for custom field import, and fix a few issues related to
importing custom fields. This will restore v3 functionality.
* Add UI support for mapping custom fields.
This still requires the field mappings to be created/assigned in
advance, but will fetch all custom field names and allow them to be
selected when setting up custom field mappings.
This commit also updates laravel-mix to v1.4.3 and other node
dependencies to fix some build issues.
* Fix some requestable asset page/assetloc issues. I'd love to know why laravel expections relationships to be in lower case... but thats a question for another day.
2017-09-18 12:29:08 -07:00
snipe
c53dae4b72
Possible fix for #3919 - allow later versions of mcrypted base64 keys
2017-09-14 16:43:41 -07:00
Iman
ed4ea7f1f4
No new feature,No bug fix, Only refactoring ( #3949 )
...
* No change in logic !
Just exchanging the if and else code blocks and negating condition.
* remove unneeded else{} block
* Re-indented the code
2017-09-12 12:28:42 -07:00
snipe
81e358a01d
Small maintenance fixes
2017-09-08 17:49:01 -07:00
snipe
6c283de60a
Check for status_id key - related to #3928
...
TODO: Fix for model number
2017-09-08 17:24:28 -07:00
snipe
47909b93f7
Fixed deleted users/restore users view
2017-09-06 17:11:43 -07:00
Daniel Meltzer
ae0573b3da
Fix asset create ( #3929 )
...
* Fix accidental commit of ImporterTest.
* Move the name() method to the presenter
This fixes some weird collisions between laravels voodoo and our
presenter voodoo that confused php. It's also probably a cleaner place
to put it. Should fix #3927
* Add missing parenthesis
* Add heading to tables on locations/view page.
2017-09-06 16:24:43 -07:00
Daniel Meltzer
987536930c
Assorted fixes ( #3923 )
...
* Fix some n+1 problems
* Use route in notification dropdown to make sure we link to correct page
* Work on better UI support for checkout to non-user. Fix links on index bootstrap table, work towards eliminating assignedUser
* Remove Asset::assigneduser() relationship. Instead add a checkedOutToUser() method and/or port to using assignedTo()
* Adjust string to fit new reality
* Fix #3780 . Move the consumables getDataView method to the ApiController. Not entirely RESTful, but it's a weird method that probably doesn't need its own controller and the functionality would be strange to stack on the userscontroller...
* Fix file uploads to assets and restore the delete route.
* Add asset maintence edit action to index.
* Suppliers asset list should link to the related asset, not to the supplier with same ID.
* Asset models page should use polymorphic formatter on assigned to to better handle assorted item types.
* Comment out more assigneduser fallacy until we figure out the query builder approach to searching for location text.
2017-09-05 17:54:58 -07:00
snipe
761371509d
Use notifiables for slack audit notification
2017-08-31 21:30:38 -07:00
snipe
3518ea7e7d
Fixes #606 - email notifications for expected checkins
2017-08-31 21:18:05 -07:00
snipe
0054ce3071
Fixes #3907
2017-08-31 13:45:48 -07:00
snipe
b0f74466bb
Removed dd
2017-08-31 11:15:52 -07:00
snipe
b4a0484295
Merge branch 'develop' of github.com:snipe/snipe-it into develop
2017-08-31 11:15:03 -07:00
Daniel Meltzer
bb874012d9
Progress towards better email notifications ( #3911 )
...
Working mail from notification. Still requires testing/cleaning
Add tests around checkout notification.
This also removes the ability to check out an asset to a location|asset
that requires acceptance/a Eula. For 4.1 we may think about how to
support such a thing, but at present it seems to make sense to only alow
such assets to be checked out to users, who can be responsible for the
items.
2017-08-31 11:14:21 -07:00
snipe
bb8583eb14
Remove lower casing for LDAP array re: #3910
2017-08-31 11:00:08 -07:00
snipe
8d2c229bc3
Move LDAP validation into form request
2017-08-31 10:44:00 -07:00
snipe
48e6208214
Fixes #3907 - do not require username on user if LDAP import
2017-08-31 10:43:36 -07:00
snipe
22233e3ba6
Bulk asset audit form (needs more testing)
2017-08-29 16:00:22 -07:00
snipe
e439f15a64
Fixed some date math for auditing
2017-08-28 17:20:20 -07:00
snipe
e10cdd57a5
Removed old getassetloist method
2017-08-26 15:22:04 -07:00
snipe
bf157773c8
Also related to #3888
2017-08-26 15:21:38 -07:00
snipe
51d74ac06d
Auduting improvements
2017-08-25 18:40:20 -07:00
snipe
af835d6efc
Additional setting validation for new fields
2017-08-25 17:59:01 -07:00
snipe
16f57e16cb
Fixes #1190 - added basic audit workflow
2017-08-25 10:04:19 -07:00
snipe
52270fa4db
Derp
2017-08-25 08:30:48 -07:00
snipe
bf3731d65c
Set default min password to 10
2017-08-25 08:23:23 -07:00
snipe
19670f9dd8
Remove assigned_to constraint
2017-08-25 06:30:10 -07:00
snipe
4721cab928
Grr.
2017-08-25 06:08:19 -07:00
snipe
08f3e78d26
Merge branch 'checkout-to-location-v2' of https://github.com/dmeltzer/snipe-it into dmeltzer-checkout-to-location-v2
...
# Conflicts:
# app/Http/Controllers/Api/UsersController.php
# app/Http/Transformers/LocationsTransformer.php
# resources/views/locations/view.blade.php
# routes/api.php
# tests/_data/dump.sql
2017-08-25 06:04:22 -07:00
snipe
10711245ba
Fixes #3792 - parent/child locations in API
2017-08-25 05:32:12 -07:00
snipe
29a7c8577d
Fixes #3849 - fillable for accessories
2017-08-25 03:48:07 -07:00
snipe
021e723acf
Fixed typo
2017-08-25 03:27:41 -07:00
snipe
14c0c314aa
Make sure payload is always passed, even if null
2017-08-25 03:27:31 -07:00
snipe
d23ea70b08
Added auth check back to asset store
2017-08-25 03:26:50 -07:00
snipe
1b047c768b
Added fullName() presenter for locations
2017-08-25 03:26:10 -07:00
snipe
73ce5f98bb
Removed some logging to make test debugging less verbose
2017-08-24 23:20:51 -07:00
snipe
659d953f3f
Fixed custom error message for status labels
2017-08-24 22:40:07 -07:00
Brady Wetherington
c1dcc22217
Refactor and improve Modal support for Assets ( #3884 )
2017-08-24 22:24:02 -07:00
snipe
4ba474cf73
Fixes asset test
2017-08-24 16:52:27 -07:00
snipe
fb6caa35ff
Only increment if settings table has a value
...
(This should only ever come up in the CI tests)
2017-08-23 14:07:01 -07:00
snipe
a5870c888e
Removed incrementer from non-asset event listeners
2017-08-23 13:59:59 -07:00
snipe
6e30fa6922
Fixes custom fields in asset listing where no custom fields were assigned
2017-08-23 03:28:13 -07:00
snipe
58b3f0519d
Add empty errors array
2017-08-23 00:31:37 -07:00
snipe
f119c69698
Possible fix for #3852
2017-08-22 22:46:02 -07:00
snipe
57f4c986af
Enforce password complexity rules on new account password change
2017-08-22 22:41:35 -07:00
snipe
06c5bce3c7
Fixes #3865 - employee number mislabeled in list output
2017-08-22 21:40:35 -07:00
snipe
a0cbca85bf
Fixes for API calls for password complexity stuff
2017-08-22 21:15:35 -07:00
snipe
9bda62d295
ADDED: Password rules for complexity, min length, rejecting common passwords
2017-08-22 20:32:39 -07:00
snipe
1d7e243d0a
Fixes #3790 - parent display on locations index
2017-08-22 15:02:31 -07:00
snipe
63bc2ec09f
Fixes #3802 - make id an (int) in API repsonse
2017-08-22 14:53:48 -07:00
snipe
d5cadeab1a
Fixes #3854 - more fillable fields for supplier API
2017-08-22 14:30:39 -07:00
snipe
31516abef9
Fixes #3858 - use transformer for single listing categories
2017-08-22 14:26:08 -07:00
snipe
d2535582f3
Fixes #3853 - added notes/zip to suppliers API response
2017-08-22 14:18:21 -07:00
snipe
eaaea303f4
Fixes #3860 - return JSON instead of redirect in API delete dept call
2017-08-22 14:15:13 -07:00
snipe
8c5312b931
Fixes #3866 - weird API behavior in status label types
2017-08-22 14:10:54 -07:00
snipe
4ef6e292d1
Fixes #3868 - model_number/notes in models API call
2017-08-22 13:56:51 -07:00
snipe
6310670835
Fixes #3869 - asset maintenances API endpoints
2017-08-22 13:52:06 -07:00
snipe
148d41d8dc
Removes erroneous else
2017-08-22 12:22:32 -07:00
snipe
71c1c74164
Fixes #3085 - adds “change password” functionality back to user accounts
2017-08-22 12:09:04 -07:00
snipe
9c02526a37
Make fields nullable in settings
2017-08-22 10:41:59 -07:00
snipe
6a73ec6537
First stab at a recrypter for legacy mcrypt conversion
2017-08-21 22:30:56 -07:00
snipe
4576cb6f56
Merge branch 'develop' of github.com:snipe/snipe-it into develop
2017-08-10 14:38:08 -07:00
snipe
56f88d2c22
Fixes #3836 - Adds supplier to licenses column
2017-08-10 14:38:04 -07:00
gibsonjoshua55
c1d1cb8122
Address #3840 and fixes group transformation in UsersTransformer ( #3841 )
...
Removes the incorrect variable access in UsersTransformer of a users's
groups and adds an array of groups' ids and names to the return array.
2017-08-10 13:37:54 -07:00
snipe
de18e2a887
Only bcrypt passwords on user save if the password value is passed
2017-08-08 14:41:58 -07:00
snipe
7da4fe4524
Fixes #3825 - allows fillables through location API
2017-08-08 12:36:28 -07:00
snipe
9bfd345774
Use Company transformer with payload
2017-08-03 19:55:08 -07:00
snipe
df87c82ddc
Fixes #3805 - add/update/delete methods for User API
2017-08-03 19:50:18 -07:00
snipe
3e8b7d9c94
Check for overall asset delete permissions before checking to see if the user can delete that specific asset
2017-08-03 19:49:41 -07:00
Jason Spriggs
7c4ee54f8b
Fix #3803 - Return asset object instead of just id ( #3811 )
2017-08-01 20:01:11 -07:00
snipe
03f9d01aab
Fixes #3775 - added missing created_at and updated_at fields
2017-07-29 17:01:03 -07:00
snipe
5b420fb4b9
Fixes #3779 - corrects presenter used for Consumables
2017-07-29 16:44:51 -07:00
snipe
a2d63dd3e4
Fixes #3776 - adds Company to Dept UI
2017-07-29 16:42:17 -07:00
snipe
0408509fdc
Fixes #3777 - correct response for two_factor_actived for user API
2017-07-29 16:25:42 -07:00
snipe
5e47c18d68
Fixes #3786 - checkin/checkout to components UI
2017-07-29 16:13:17 -07:00
snipe
4e5cf531f7
Fixes #3799 - use transformers on show() method as well
2017-07-29 15:46:10 -07:00
snipe
ccb7556281
Fixes javascript error when custom fields exist but do not belong to any fieldsets or models
2017-07-26 17:06:58 -07:00
snipe
ee7348d0d5
Better fix for javascript formatter for employee number
2017-07-26 16:47:47 -07:00
snipe
7d6bf4ac24
Fixes stupid javascript for employee_number
2017-07-26 16:26:47 -07:00
snipe
cb903ab9fd
Fixes manager user->name to username in Users API
2017-07-26 08:51:16 -07:00
snipe
66d8308163
More compact payload for users API on location and manager
2017-07-26 08:47:54 -07:00
snipe
847262e989
Fixes #3774 - fixes for inconsistent API responses (‘’ vs null) and adds escaping
2017-07-25 23:40:30 -07:00
snipe
59006964d1
Fixes #3771 - adds username to API response on Asset API
2017-07-25 22:11:50 -07:00
snipe
ac29b142dc
Adds max thumbnail width to asset listings, settings
2017-07-25 19:36:38 -07:00