snipe
4ce91a4f5d
Fixed namespace gate for components - related to #4282
2017-12-12 06:26:37 -08:00
snipe
aff93d8f2b
Fixed #4589 - Licence deployed to asset issue
2017-12-12 05:43:06 -08:00
snipe
e4ab4024c5
Added - changelog searchable in history tab
2017-12-12 05:10:13 -08:00
snipe
612f23f6e0
Added #2893 - track changes on asset edits
2017-12-12 04:59:28 -08:00
snipe
88ca852dcf
Cleaned up asset observer
2017-12-12 03:40:04 -08:00
snipe
9fe2a7f81d
Removed duplicate log entry on asset creation
2017-12-12 03:39:55 -08:00
snipe
c816870083
De-norm last audit date so we can display it in the asset listing
2017-12-12 03:03:43 -08:00
snipe
c5c46b7283
Removed duplicate deleted logaction
...
This is handled via observers now
2017-12-12 02:32:45 -08:00
snipe
5b00a8ae33
Use specific company_id column name in user search
2017-12-11 22:50:55 -08:00
snipe
5ee6e7f94b
Fixed #4613 - Added table prefix to user search DB raw
2017-12-11 22:31:07 -08:00
snipe
f90271dae5
Aaaaand one more for #2810 . Sigh.
2017-12-08 14:33:12 -08:00
snipe
e1423bd9d9
One more fix for #2810
2017-12-08 14:02:27 -08:00
snipe
3df62a200f
Fixed manufacturer gates
2017-12-08 13:16:37 -08:00
snipe
a65ea639ed
Added comments to SnipePermissionsPolicy for clarity
2017-12-07 21:00:09 -08:00
snipe
defed52caa
Fixed #4596 - manufacturer gate
2017-12-07 20:59:55 -08:00
snipe
f4ac087c83
Fixed policy namespace
2017-12-06 14:49:52 -08:00
snipe
4898dd8e23
Use ImageUploadRequest $request on user profile update
2017-12-06 14:42:14 -08:00
snipe
a090b6a9d2
Use ImageUploadRequest
2017-12-06 14:38:01 -08:00
snipe
dfb0c09c51
Fixed #4581 - renamed print method
2017-12-06 11:17:42 -08:00
snipe
83547e3fed
Prepopulate ther groups array on create
2017-12-05 18:17:11 -08:00
snipe
29a36b5d1c
Do not allow null id on group edit
2017-12-05 16:49:26 -08:00
snipe
a19cef07bf
Check for gate on license key display
2017-12-05 16:26:23 -08:00
snipe
c39e6d7006
Fixed #4576 - licence checkout gate
2017-12-05 15:04:10 -08:00
snipe
bfa4812482
Exclude company on filter
2017-12-05 14:23:46 -08:00
snipe
438f484d68
Removed duplicate purchase cost column
2017-12-05 14:03:08 -08:00
snipe
f95d780fcf
Include purchase cost column if depreciation is selected
2017-12-05 14:02:43 -08:00
snipe
76fe2af0af
Fixed #4444 - Added EOL back into asset lsiting and custom report
2017-12-05 13:03:11 -08:00
snipe
e490185533
Fixed EOL in custom report
2017-12-05 12:54:19 -08:00
snipe
deba4d2b81
Added consumables tio printable output
2017-12-05 12:37:42 -08:00
snipe
a8cc29f062
Added #2562 - print view of all assigned inventory
2017-12-05 12:34:16 -08:00
snipe
c9e6a75ea8
Make sure there is a valid status label associated withthe asset when checking if deployable
2017-12-05 11:28:48 -08:00
snipe
7efa7ec03f
Starter print template for all assets assigned to a user
2017-12-05 01:55:24 -08:00
snipe
9eef7a94ab
Fixed #4557 - added missing fields in components/consumables list view
2017-12-05 00:40:30 -08:00
Brady Wetherington
4584990cc3
Cleaner re-implementation of loop-detection for asset-assigned-assets ( #4553 )
...
* Cleaner re-implementation of loop-detection for asset-assigned-assets
* Get rid of the other static and pass it along recursively too.
2017-12-04 23:00:55 -08:00
snipe
d7f2bceea2
Fixed incorrect property on supplier
2017-12-04 20:45:20 -08:00
snipe
fdaa279930
Fixed #4548 - add cateory to model dropdown
2017-12-04 20:19:30 -08:00
snipe
ec4bed436c
Fixed #4565 - show manufacturer in models selectlist
2017-12-04 19:52:18 -08:00
snipe
636c558fe6
Fixed #4566 - search by purchase_date
2017-12-04 15:26:40 -08:00
snipe
2aafdb1400
Bumped version
2017-12-01 20:49:04 -08:00
snipe
9deafd771e
Fixed bad suppliers error route
2017-12-01 20:28:37 -08:00
snipe
cbc09f3a12
Fixes #4508 - adds image to location view (and google map, if address and API key exist)
2017-12-01 19:12:35 -08:00
snipe
8b4c85d69a
Removed verbose logging
2017-12-01 16:56:50 -08:00
snipe
78a51d3675
Additional fixes, improvements for custom report
2017-12-01 16:51:38 -08:00
snipe
14874d8e8a
Fixes #4495 - missing field in Download CSV, added filter options on custom report
2017-12-01 14:47:52 -08:00
snipe
ff793f1cb5
Added variable to determine if “new” modal button should be displayed
2017-12-01 14:37:11 -08:00
snipe
8140bdaa88
Fixed repeated header issue in asset export
2017-12-01 14:25:32 -08:00
snipe
fd4a8edae9
Fixed incorrect glyphs for users/locations
2017-11-30 16:40:58 -08:00
snipe
cefdca3d22
Fixed incorrect has vs input
2017-11-30 13:40:26 -08:00
snipe
d3864db5e1
Switched to use $request from Input:: facade
2017-11-30 13:32:00 -08:00
snipe
e25829c759
Removed extra debug logging
2017-11-30 13:30:20 -08:00
snipe
cdfd720c65
Fixed custom fields edit behavior with cutom format always selected
2017-11-27 22:10:46 -08:00
snipe
c0f791cf13
Sigh.
2017-11-27 21:35:06 -08:00
snipe
ea2f7617df
Validate checkout_to_type on asset checkout
2017-11-27 21:20:12 -08:00
snipe
b6c258bb12
Redirect to back on bad checkout
2017-11-27 21:19:50 -08:00
snipe
804b49cefb
Make sure the asset is available for checkout before displaying the checkout screen
2017-11-27 21:18:29 -08:00
snipe
305b0d8edb
Fixed #4522 - properly check for valid target, throw error otherwise
2017-11-27 21:17:58 -08:00
snipe
05996019e5
Use asset checkout request in API
2017-11-27 21:17:16 -08:00
snipe
51661b0a21
Fixed #4190 - Added artisan command to regenerate asset tags
2017-11-24 11:25:51 -08:00
Daniel Meltzer
bee1dfc4a6
More importer fixes ( #4516 )
...
* The default locale of en does not include dollar sign in default currency. Assume if there is no currency symbol set that the dollar sign is a good thing to look for in parsefloat.
* Fix for 4485. Serial not serial_number
Also fix bug where updating with a csv that does not include custom field columns should not overwrite current values.
* Rename serial_number to serial in default imports to avoid needing to map weirdly.
* Add Test for 4359. Not reproducable at current though
2017-11-24 10:42:11 -08:00
snipe
a7e12931fa
Check that assigned is an object in reports controller
2017-11-22 18:42:17 -08:00
snipe
6f3a90c48b
Check that the assigned data is valid
2017-11-22 15:07:34 -08:00
snipe
8f160a8590
Fixed CSV asset export missing checked out to info
2017-11-22 13:05:48 -08:00
snipe
2278d5bfd8
Fixed restore permission to assets API disable delete/checkin/checkout on deleted assets
2017-11-22 10:35:24 -08:00
snipe
8562f018ed
Fixed - conflicting error when a user and asset were both checked out
2017-11-22 07:31:38 -08:00
snipe
d98d06377e
Fixed #4098 - autolink URL and email addresses in listing
2017-11-21 22:34:53 -08:00
snipe
22fdd05314
Add UTF charset
2017-11-21 22:34:07 -08:00
snipe
0adebd1ec8
Add sorting and additional category types to dashboard categories
...
BREAKING CHANGE: Category type now reports as `category_type`, instead of `type`
2017-11-21 20:33:30 -08:00
snipe
43c1e893c0
Fixed #4494 - use audit settings for asset audit pre-populaton
2017-11-21 20:13:51 -08:00
snipe
e5129a8b98
Removed next_version
2017-11-21 19:39:33 -08:00
snipe
0c9e41e1fa
Updated versioning script to handle githooks better
2017-11-21 19:01:47 -08:00
snipe
4696e799ed
Fixes #4491 and #4483 - handle pre-selected asset on checkout, better checkout-to selection UI ( #4501 )
...
* Added form checkout selector partial
* Stupid stash
* Added radio button checkout selector javascript
* New compiled production assets
* Added $style override in form partials for select2 ajax lists
* Added checkout-to radio button selector
TODO: Fix for accessibility - currently cannot tab-select this radio button
* Added new checkout-to selector to hardware edit
* Added new checkout-to selector to asset checkout form
* Refactored postCheckout to use radio button submission
This defaults to user checkout if nothing is passed for some reason
* Better visual feedback on whether or not an asset is deployable in edit screen
2017-11-21 15:58:31 -08:00
snipe
17405f5de1
Fixed #4413 - Next license seat not bering assigned correctly
2017-11-20 19:21:05 -08:00
snipe
897bd2c56e
Fixed location sorting location instead of rtd
2017-11-16 16:49:48 -08:00
snipe
7321c5937f
Fixed #4440 - allow username search in asset dropdown
2017-11-16 16:49:16 -08:00
snipe
3d07635820
Fixed sort by model in asset listing
2017-11-16 14:14:30 -08:00
snipe
ce525c1985
Fixed #4471 - removed gate for categories selectlist
2017-11-16 13:48:38 -08:00
snipe
edcd3afc3e
Fixes #4457 - use un-escaped CSS for custom CSS styles
...
We are already escaping the CSS in the show_custom_css() method
2017-11-15 14:27:21 -08:00
snipe
ba38b841cb
Constrain accessory by category ID if one is passed
2017-11-14 16:47:21 -08:00
snipe
498fc3762d
Fixed #4437 - pagination for maintenances
2017-11-14 01:32:25 -08:00
snipe
3e5e6ba99a
Use table alias for models join in search/order by models
2017-11-14 00:04:03 -08:00
snipe
0396267388
Fixed #4412 - use select2 ajax list for asset maintenances
2017-11-12 17:22:16 -08:00
snipe
7eef1b4bcf
Fixed #4418 - order models by name asc in selectlist
2017-11-10 15:56:14 -08:00
snipe
bb4d49690f
Add purchase date to dates array so it’s treated as a Carbon date
2017-11-09 18:59:05 -08:00
snipe
ee0814716a
Only format ecpected checkin date if one exists
2017-11-09 13:40:55 -08:00
snipe
012afe99e2
Set purchase date to date type
2017-11-09 13:27:58 -08:00
snipe
afe6f43a1b
Exclude manufacturer on filter sort
2017-11-09 11:18:04 -08:00
snipe
6852b74317
Removed gates from selectlist method
2017-11-09 10:51:55 -08:00
madd15
172c7c75a8
Fixed #4374 - Add option to display company names to labels ( #4405 )
...
* Migration - Labels Display Company Name setting
* Add Company Name to Labels
Add company name if it is turned on in settings and asset has a valid company
* Add Company Name checkbox to Label settings
* Add Company Name Lang
* Add display company name to postLabels
* Revert Add Company Name Lang
* Fix display company name in postLabels
* Change tinyInt to boolean for display company name
* Simplify checking for company and getting the name
* Change to square brackets for array notation
* Move divs inside if statements on optional fields
2017-11-08 20:05:39 -08:00
snipe
487fd17ce3
Fixed ambiguous query when selecting by model_id
2017-11-08 20:03:26 -08:00
snipe
c162c02304
Force expected checkin to be formatted as a date (not datetime) since it’s a date field in the DB
2017-11-08 18:03:47 -08:00
snipe
1bb1480f67
Added a comment around protected dates so we know wtf
2017-11-08 18:03:27 -08:00
snipe
b567ffdcfe
Fixed #2855 - checkin for components
2017-11-08 06:06:05 -08:00
snipe
35ee52212f
Added ability to disable the alert icon in the top menu
2017-11-08 03:08:17 -08:00
snipe
a3e80882c1
Better error handling for qr codes on invalid assets
2017-11-08 01:04:14 -08:00
snipe
74773ac912
Fixed incorrect policy reference in consumables listing
2017-11-07 23:05:29 -08:00
snipe
9764d2ad24
Removed commented code
2017-11-07 22:25:32 -08:00
snipe
d03b8c6528
Error handling for when log ID has no match on asset accept
2017-11-07 22:25:24 -08:00
snipe
99a355145e
Removed empty comments
2017-11-07 22:24:57 -08:00
snipe
5aee5a3f3d
Update location on checkout, error if bad target
2017-11-07 17:37:08 -08:00
snipe
9d7455f022
Fixed handling deleting old images better
2017-11-07 11:28:13 -08:00
snipe
b748e7ed5e
Fixed transformers to use new singleton upload urls
2017-11-07 11:11:47 -08:00
snipe
84a717c6ad
Fixed deleted ordering scope
2017-11-07 11:06:38 -08:00
snipe
a202e1657c
Fixed path for singletons
2017-11-06 21:58:28 -08:00
snipe
4ae4083b7b
Removed unused $matches variable
2017-11-06 21:26:30 -08:00
snipe
dec9ac1ac8
Fixed lowercase false
2017-11-06 21:25:40 -08:00
snipe
231dea0ebc
Break out service providers by responsibility
2017-11-06 21:17:17 -08:00
snipe
579334b5fc
Fixed - name should always be required in custom fields
2017-11-06 20:05:40 -08:00
snipe
3a82fbe714
Switch to rollbar’s official package
2017-11-06 20:04:50 -08:00
snipe
dc32e4bdb0
Fixed form request ffor custom fields
2017-11-06 16:42:37 -08:00
snipe
6ece593629
Fixed #4381 - asset uploads
2017-11-06 12:38:31 -08:00
snipe
2b3b2e3197
Removed presenter references in custom report
2017-11-06 10:44:57 -08:00
snipe
a9d9234fb3
One more fix for custom reports
2017-11-06 10:44:18 -08:00
snipe
936ff707c7
Fixed custom report bug if assignedTo has no value
2017-11-06 10:42:34 -08:00
snipe
4818e1b8ca
Fixed sorting for filtered items by location
2017-11-06 10:26:09 -08:00
snipe
04ab522ee3
Fixes #4236 - validate the regex custom validation ( #4380 )
...
* More helpful text on how the custom validator works
* Clarified language of custom format, fixed regex example
* Fixed regex example in placeholder
* Added comments to custom fields
* Added regex validation string
* Added valid_regex validator in format requirements
* Removed useles comments
* Fixes #4236 - validate the regex custom validation
2017-11-04 17:06:14 -07:00
snipe
f672b14468
Ignore deleted assets and check for valid location in artisan command
2017-11-04 16:20:31 -07:00
snipe
fe06ef10f1
Set the items array variable for no results
2017-11-04 01:23:50 -07:00
snipe
2de0a3669e
Check that there is a valid array before unshifting
2017-11-04 01:11:11 -07:00
snipe
d68d95a915
Fixed - Added a “clear selection” option to select2 ajax lists
2017-11-04 00:19:16 -07:00
snipe
2522bfee9c
Only return mnon-archived assets by location
2017-11-03 21:46:11 -07:00
snipe
d7f8615964
Fixed query for location ID
2017-11-03 20:10:36 -07:00
snipe
ecd21074fb
Commented out erroneous fixme
2017-11-03 20:10:05 -07:00
snipe
12caa48390
Uncommented info output
2017-11-03 19:42:54 -07:00
snipe
cc7be5f947
Added location to checkout in API
2017-11-03 19:42:45 -07:00
snipe
5b489e003d
Set the location_id on save/update to rtd if one is given
2017-11-03 19:41:26 -07:00
snipe
8c1f4b006e
Removed comment
2017-11-03 19:40:55 -07:00
snipe
3a52c19428
Updated fieldname in Locations transformer and API
2017-11-03 19:40:40 -07:00
snipe
b786791401
Added location to checkout method
2017-11-03 19:39:48 -07:00
snipe
1c12b6e13b
Added artisan command to sync locations
2017-11-03 19:00:36 -07:00
snipe
c06539dee3
Update the location ID if there is an rtd_location given
2017-11-03 17:36:18 -07:00
snipe
3b9544d1f3
Remove commented code
2017-11-03 17:35:46 -07:00
snipe
da9bb07041
Add a default legacy cipher of rijndael-256
2017-11-03 16:27:03 -07:00
snipe
f95502ae35
Fixed search by model on adsvanced search for assets
2017-11-03 15:04:21 -07:00
snipe
b3b8ab493e
Switch to the reply_to address
2017-11-03 14:58:49 -07:00
snipe
87ba042b2d
Fixed manager name subquery on user search
...
Self-joins in Laravel make baby jesus cry :(
2017-11-03 14:47:31 -07:00
snipe
6fb0ef908d
Fixed issue sorting when viewing users by department
2017-11-03 14:29:04 -07:00
snipe
cf56f70b3a
Added table alias for sorting
2017-11-03 13:28:57 -07:00
snipe
85360a7c7f
Removed gates on selectlists
...
They can’t access the API directly unless they have been granted API accesses anyway
2017-11-03 13:03:57 -07:00
snipe
416455fe01
Fixes weird manager_id validation
...
This is a shit fix - need to find out what’s happening here.
2017-11-03 12:48:00 -07:00
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