snipe
5b8cbe29e1
Possible fix for #5054 - OpenLDAP (non-AD) LDAP users being deactivated
2018-08-27 14:51:37 -07:00
snipe
e4f6aefdad
Added self-checkout permission option
2018-08-21 23:26:12 -07:00
snipe
771265113e
Added cookie serialization for Laravel v5.6.30
2018-08-21 22:40:14 -07:00
snipe
aed769c0be
Honor active status for forgotten password request forms
2018-08-14 20:05:57 -07:00
snipe
1543cdbc61
Set activated checkbox to 1 by default on new user
2018-08-14 18:17:37 -07:00
snipe
25097bce31
Only allow activated users to reset their password
2018-08-14 18:04:27 -07:00
Till Deeke
62195a805a
Adding some comments
2018-08-06 14:47:26 +02:00
Till Deeke
8c96e8fd4b
Updates asset acceptance report to show unaccepted assets
2018-08-06 14:47:26 +02:00
Till Deeke
1bdf71b584
Handle side effects of accepting/declining
...
When declining an asset, it gets checked in.
2018-08-06 14:47:26 +02:00
Till Deeke
8648d53d25
Adds checkout acceptances
...
A checkout acceptance gets generated for every item that needs to be checked out. This resource tracks the user user who can accept the item and their signature
2018-08-06 14:47:26 +02:00
Till Deeke
6b05106dcb
Moves license checkout stuff to the license seat
...
Since we are really checking out a license seat instead of the whole license, we operate the checkin/checkout on the license seat instance.
2018-08-06 14:47:26 +02:00
Till Deeke
43437aac14
Adds acceptable contract to asset
2018-08-06 14:46:10 +02:00
Till Deeke
830a6cf67e
Adds accepting/declining to new controller
2018-08-06 14:46:10 +02:00
Till Deeke
39e6b59335
Fixes some typos
2018-08-06 14:46:10 +02:00
Till Deeke
72b43b6526
Updates checkout notifications to use new routes for accepting
2018-08-06 14:46:10 +02:00
Till Deeke
e0423418d2
Moves logging checkin/checkout to separate listener
2018-08-06 14:46:10 +02:00
Till Deeke
e24f292a1a
Updates checkout events to not depend on log
2018-08-06 14:46:10 +02:00
Till Deeke
17fc59f989
Adds back the checkin/checkout events after #5916
2018-08-06 14:46:10 +02:00
Till Deeke
775e46288e
Cleanup of model attributes
2018-08-06 14:46:10 +02:00
Till Deeke
722f032895
Remove notification sending from loggable trait
2018-08-06 14:46:10 +02:00
Till Deeke
112a532618
Listen for checkout events and send appropriate notifications
2018-08-06 14:46:10 +02:00
Till Deeke
ef76908fce
Listen for checkin events and send the appropriate notifications
2018-08-06 14:46:10 +02:00
Till Deeke
4a71542f23
Cleanup checkin notification constructors
2018-08-06 14:46:10 +02:00
Till Deeke
ea64abc607
Adds checkout events
2018-08-06 14:46:10 +02:00
Till Deeke
f0acf47101
Adds checkin events
2018-08-06 14:46:10 +02:00
Till Deeke
92a2a5ccbc
Adds listeners for checking/checkout events
2018-08-06 14:46:10 +02:00
Daniel Meltzer
2d0df24ef3
Check for an existing username before getting creative. Fixes #6016 ( #6039 )
2018-08-03 16:35:13 -07:00
snipe
1a660911e7
Check for minimum PHP version in setup
2018-08-02 21:36:18 -07:00
Daniel Meltzer
e368a20427
Use filled instead of has. ( #6033 )
...
I think this merged in a weird order and was missed by the global
find/replace. This fixes bulkassets/bulkusers editing.
At some point we should look at refactoring BulkAssetsController@edit to
only run one DB query, rather than one per item.
2018-08-02 09:54:19 -07:00
Daniel Meltzer
2637ce56a1
Allow importcontroller to return 200 for failed delete. ( #6034 )
2018-08-02 09:53:54 -07:00
snipe
f5a5d830a5
Better handling for deleting imports where the files may have been moved
2018-08-01 20:49:55 -07:00
snipe
9168979d9e
Fixed #6027 - added model to asset maintenances listing
2018-08-01 18:24:52 -07:00
snipe
3f394f42c7
Partial fix for better UI on deleting files
...
Still needs Vue stuff
2018-08-01 18:01:16 -07:00
snipe
b2c99c88bb
Fixed #6028 - added supplier url to list view
2018-08-01 17:37:58 -07:00
snipe
694166862e
Added attempted logins admin screen ( #6018 )
...
* Added attempted logins admin screen
* Smaller table spacing
2018-08-01 03:51:59 -07:00
snipe
911c2398ef
Fixed #6004 - set a default next_audit_date if none provided
2018-08-01 03:04:29 -07:00
snipe
2c38036123
Improvement: Better documentation, small refactors ( #6017 )
...
* Better documentation, small refactors
* Small comment fixes
2018-08-01 00:06:41 -07:00
snipe
b1b5eeecba
Fixed #6013 - add accessory checkout notes to detail page
2018-07-31 16:00:38 -07:00
snipe
400913631c
Use language strings for bulk password reset
2018-07-30 20:37:19 -07:00
snipe
006a3adea0
Added ability to trigger forgotten password emails for users
2018-07-30 20:31:02 -07:00
Daniel Meltzer
248fcfa869
Move findLicenseSeatToCheckout back to controller. ( #5970 )
...
* Move findLicenseSeatToCheckout back to controller.
After discussion, move findLicenseSeatToCheckout method back to
controller from form request. Also cleanup one tiny bit more with null
coalesce operator (Yay php 7).
* Revert Earlier change.
$target only exists in the checkoutTo* methods. Need to log the
checkout individually in each of those.
2018-07-27 12:03:04 -07:00
Daniel Meltzer
b58c77c8b8
Feature: Import users department. ( #5987 )
...
Maps to the "Department" header key by default. Bug: #5382
2018-07-27 12:02:18 -07:00
Daniel Meltzer
94c79fa69a
Fixed #5964 - Feature: Group IDs can be passed to User Create. ( #5990 )
...
Also added to update, and adjusted api tests to confirm. Long term it
might be nice to look at support for passing group names instead.
Bug: 5964
2018-07-27 12:01:59 -07:00
Daniel Meltzer
a3811f632d
Licence != License ( #5993 )
2018-07-27 12:01:25 -07:00
snipe
d8f0102204
Merge branch 'features/restore_deleted_cmd' into develop
...
# Conflicts:
# config/version.php
# resources/views/layouts/basic.blade.php
2018-07-27 02:48:13 -07:00
snipe
6b013724aa
Uncomment backup
2018-07-26 18:11:51 -07:00
snipe
8774f0cf45
Script to restore deleted users and put their asset assignments back
2018-07-26 18:08:49 -07:00
snipe
8762e158c4
Delete content from login attempts table
2018-07-26 18:08:25 -07:00
Daniel Meltzer
49d95892e3
Port asset history importer to league/csv9 ( #5972 )
2018-07-26 12:04:21 -07:00
snipe
9618878023
Restrict users asset listing to just assets checked out to users
2018-07-25 21:40:33 -07:00
snipe
614e858e44
Restrict users asset listing to just assets checked out to users
2018-07-25 21:38:14 -07:00
snipe
373885ebd1
Use Storage for file uploads (not model images)
2018-07-25 11:57:49 -07:00
snipe
a9fd9c9e59
Moved gates to individual controller methods to fix “This action is unauthorized” in route:list
2018-07-25 10:45:32 -07:00
snipe
63bf71b071
Use Storage methods for asset/license files
2018-07-25 09:48:50 -07:00
snipe
7a9a78ec53
Make Codacy happy by reversing the signature params
2018-07-25 07:14:16 -07:00
snipe
91a9e410df
Fixed weird whereNULL
2018-07-25 06:46:06 -07:00
snipe
501f096a2c
Updated spatie backup config file for their latest version
2018-07-25 01:36:30 -07:00
snipe
47ed328f0e
Change fire() to handle() for Laravel 5.5
2018-07-25 01:28:44 -07:00
snipe
7af633177a
Fixed filledFile back to hasFile
2018-07-24 22:52:49 -07:00
snipe
86c1f11bec
Change $request->has to $request->filled unilaterally
2018-07-24 22:51:31 -07:00
snipe
0714ac4248
Update withCounts because Laravel 5.5 :(
2018-07-24 22:40:05 -07:00
snipe
e6dd90e055
Added footer settings to settings reset
2018-07-24 22:21:16 -07:00
snipe
b2968ea6c6
Fixed paths to Aurhorizable/Authenticatable contracts
2018-07-24 21:29:08 -07:00
snipe
3d3ed6ab03
Logging updates for 5.6
2018-07-24 21:13:02 -07:00
snipe
7bb50a61a7
Applying @dmeltzer’s changes from afc8ac5e72
2018-07-24 21:13:02 -07:00
Daniel Meltzer
64d649be7f
Monster: Cleanup/Refactor http controllers. ( #5916 )
...
* Extract a handlesimages trait to centralize logic for parsing/storing images on upload in create/edit methods.
* Use same image upload/layout in accessories as consum+components.
* Monster: Cleanup/Refactor http controllers.
This cleans up docblocks, pulls most non-crudy actions into their own
controllers, and does general cleanup/logic refactoring. There /should/
be no functional changes, but we all know how should works..
Extract checkin/checkout functions to a separate controller for accessories.
Move controllers to subdirectory.
Cleanup AssetModelsController
Extract component checkin/checkout
Assorted cleanups/doc/formatting in controllers.
Refactor LicenseController.
Refactor UsersController
Update viewassetscontroller.
* Codacy cleanups
* More codacy cleanups. Extract a LicenseCheckout Form request as well.
* A bit more refactor/cleaning of the license checkout method.
* Review Related Cleanups
* Fix most of the item_not_found translations. In many cases, the
string being generated did not even use the id parameter. Where it
does, pass it as id instead of as a different value.
* Remove some old $data arrays from when we manually sent emails from
the controllers. This has been superseeded by the notification system
(yay!)
* Bugfix: Only log the checkin of an accessory if the checkin completes sucessfully.
2018-07-24 19:35:26 -07:00
snipe
e320d2ba05
Fixed #5944 - added logo option for print-assets page ( #5950 )
2018-07-24 13:37:02 -07:00
snipe
ed78a4b8a0
Fixed activated issue for strict mode
2018-07-24 13:28:59 -07:00
snipe
376eb52f00
Fixed #5938 - added “self location edit” as permission
2018-07-24 12:42:16 -07:00
snipe
f4cfb31bf4
Use request object
2018-07-24 12:10:02 -07:00
snipe
227dc7e81d
Save model display setting - fix for issue in #5301
2018-07-24 12:10:02 -07:00
Azerothian
66c3f5432d
implemented specific seat checkout ( #5887 )
2018-07-23 20:28:45 -07:00
Daniel Meltzer
059126f642
Checkout update locationid ( #5919 )
...
* Fix missing punctuation. Bad merge.
* If we're checking out to an location, use it's id instead of location_id
2018-07-23 06:47:21 -07:00
Daniel Meltzer
3bc43210ab
Add ID to the allowed sort fields in api/Users. ( #5929 )
2018-07-23 06:46:50 -07:00
Daniel Meltzer
82194cef8a
bugfix: updating a user when an admin (not a superuser) would remove any groups from the user. ( #5914 )
2018-07-21 23:02:06 -07:00
Till Deeke
e1c095adca
Removes the typehint for search term string ( #5904 )
...
The „string“ typehint only works in PHP >= 7.0.0.
Since we are still supporting versions below that, remove the type hint.
2018-07-20 13:23:44 -07:00
Till Deeke
45a2932f4b
Fixes the generation of where conditions ( #5902 )
2018-07-20 13:23:29 -07:00
Till Deeke
b6e3715cd8
Fix: No Notifications for checking out Consumables ( #5898 )
...
* Adds a method to consumables to check if a notification should be sent
Adds the checkin_email method to Consumables, this gets checked in notifications when checking out the consumable.
Without the method, no notifications get sent for checking out consumables.
* Fixes the checkin_email method on the License model
This should allow the License to also send checkout/checkin notifications again.
2018-07-20 13:22:49 -07:00
snipe
d45e90e358
One more fix for #5893
2018-07-19 14:45:28 -07:00
snipe
7ebb7876c4
Partial fix for #5896
...
Still need to fix the front end on edit, which seems to be defaulting to boolean
2018-07-19 10:40:07 -07:00
Daniel Meltzer
351274c633
Hotfix: the checkin_email does not exist on consumable. ( #5891 )
2018-07-19 10:38:50 -07:00
snipe
a0c0b7b1eb
Fixed #5893 - activated typo
2018-07-19 10:22:08 -07:00
snipe
5a34d43a86
Fixed #5895 - wrong date validation in maintenances
2018-07-19 10:19:55 -07:00
snipe
9d00ae6e50
Fixed #5894 - lookup by asset tag in top search broken
2018-07-19 10:14:02 -07:00
snipe
9daeeeb851
Features/nicer notifications ( #5886 )
...
* Improved expiring licenses notification
* Improved expiring assets notification
* Nicee low inventory notification
* Refactored stupid language strings
* Oops
* Use settings variable
2018-07-18 19:15:45 -07:00
Daniel Meltzer
92671823d8
Userimport fixes/improvements ( #5884 )
...
* Send notification when user is created.
* Flesh out default user mappings
* Add user importing test.
2018-07-18 19:15:07 -07:00
Daniel Meltzer
19396b2107
Logic Fix ( #5877 )
...
If we have a username, we should look that up even if we do not have a
first name.
2018-07-18 19:10:36 -07:00
snipe
d309f67df0
Set activated to zero if no values passed for active user
2018-07-18 08:27:26 -07:00
snipe
1c0ee7c4c5
Fixed license checkout gate
2018-07-18 05:33:14 -07:00
snipe
5a1e1c73c9
Include show_in_list option in select
2018-07-18 03:59:02 -07:00
snipe
3be68ec721
Fix location edit permissions
2018-07-18 03:43:45 -07:00
snipe
027edbdb21
Fixed #5872 - asset maintenances listing showing created_at instead of start_date
2018-07-18 02:24:53 -07:00
Daniel Meltzer
cf03d25934
Fix importer emailformat ( #5871 )
...
* Fix Importer emailformat
Str::slug() strips periods from the string, which caused our existing
logic to misbehave when generating a user's email on an import. Adjust
logic to use generateEmail() helper on user instead. Also clean up some
of the logic in this method.
* Remove dead code.
* More refactor/cleanup of the user create method. I think it is almost readable now.
2018-07-17 16:46:08 -07:00
snipe
bcd988bb81
Merge branch 'develop' of https://github.com/DeusMaximus/snipe-it into develop
...
# Conflicts:
# app/Http/Controllers/Auth/LoginController.php
2018-07-17 01:11:15 -07:00
snipe
aa6c21f38d
Fixed typo
2018-07-17 01:03:32 -07:00
snipe
0f85d6810b
Added login log
2018-07-16 23:49:08 -07:00
snipe
bf761946da
Fix activated check for login
2018-07-16 23:48:46 -07:00
snipe
d9fa2f0e91
Fixed #5842 - added components to location detail view
2018-07-16 21:50:14 -07:00
DeusMaximus
7c2da81700
Fix REMOTE_USER Header with IIS and AD
...
Remove DOMAIN\ portion of DOMAIN\user when using Windows Authentication and IIS with REMOTE_USER.
2018-07-17 14:03:19 +10:00
snipe
a4799a495a
Fixes #5859 - add file name/size to file upload UI ( #5861 )
...
* Fixes #5859 - add file name/size to file upload UI
* Reverting assetcontroller
Not sure exactly what happened here…
* Production assets
2018-07-16 20:09:53 -07:00