snipe
14b0a6315f
Pass users path to get_src
2016-07-28 05:49:41 -07:00
snipe
eb508901c5
Zerofilling for auto-increment
2016-07-27 21:28:00 -07:00
Daniel Meltzer
a401986ef5
Only set the category_type in postEdit if the category is empty. ( #2337 )
...
Fixes #2333
2016-07-27 16:13:54 -07:00
snipe
ad531d6d59
Merge branch 'develop' of github.com:snipe/snipe-it into develop
2016-07-25 22:10:38 -07:00
snipe
261d2f133b
Only bcrypt temp passwords once for performance
2016-07-25 22:10:33 -07:00
Daniel Meltzer
e0938cf82d
Scope to company when viewing assets ( #2315 )
...
* If a user doesn't belong to a company, when scoping to a company we should only show items that don't belong to a company.
* Scope tables/items to the company they belong to when fetching items for the index.
* Fix asset count to also scope to company. This fixes dashboard view
* Exempt super users from the child company check to be consistent. Fixes license count on dashboard now that we scope everything
2016-07-25 19:46:29 -07:00
snipe
eec22c5aeb
Removed port stuff, since LDAP ignores it anyway :-/
2016-07-22 16:21:16 -07:00
snipe
b03330aae0
Added TLS option in settings for LDAP
2016-07-22 16:00:37 -07:00
snipe
ba25972b49
Add LDAP port number option
2016-07-22 15:09:49 -07:00
snipe
d4138f4364
Fixes #2299
2016-07-22 03:10:25 -07:00
snipe
b2d958724b
Removed commented code
2016-07-22 02:11:37 -07:00
snipe
92175eb700
Few more LDAP/AD tweaks
2016-07-14 23:49:32 -07:00
snipe
0cf8ac1d95
Add AD domain to settings
2016-07-14 15:52:52 -07:00
snipe
8fd8e747d9
Fix for missing input variable in suppliers ajax method
2016-07-13 22:35:21 -07:00
snipe
e6b872299d
Possible fix for #2246 - needs AD testing
2016-07-13 15:18:29 -07:00
snipe
40b56cfad7
Removed unused variables
2016-07-13 07:24:54 -07:00
snipe
5cd2c78d5e
Link to location view, not edit
2016-07-13 07:16:10 -07:00
snipe
ab6e2a7301
Merge branch 'v3' of github.com:snipe/snipe-it into v3
2016-07-13 05:50:45 -07:00
snipe
e7038cfdc8
LDAP tester
2016-07-13 05:50:40 -07:00
snipe
4233c781ac
Reworked LDAP login. Fixes #2218
...
LDAP no longer fails completely when the connection settings are wrong, or when app key is messed up. Rather than auth as the admin user and search, we auth as the user themselves. Admin auth is only for LDAP sync now.
This should mean much fewer problems with donked LDAP settings and login.
2016-07-13 05:50:24 -07:00
Daniel Meltzer
bf88cd8233
Check for variables to exist and not null rather than assuming it does. Fixes #2247 . ( #2248 )
2016-07-12 21:03:23 -07:00
snipe
c8351ae01b
Reverting back to or die
2016-07-11 18:25:29 -07:00
snipe
7a4cbce460
Use trans instead of lang::
2016-07-10 21:07:59 -07:00
snipe
f87fbbdb1d
Removed unused use statement
2016-07-10 21:01:11 -07:00
snipe
4e38f96f97
Switched or and and to || and && for code quality
2016-07-10 20:55:44 -07:00
Daniel Meltzer
ab3b9dcf5d
Add a clone button the the user table. ( #2241 )
...
Also preserve permissions when cloning a user, instead of nulling them by default.
2016-07-10 18:43:10 -07:00
Daniel Meltzer
f683c78a69
Fix adding an image to an asset when public/uploads/assets does not exist ( #2240 )
...
* Fix adding an image to an asset when public/uploads/assets does not exist.
First check to see if we can create directory and do so. If any errors occur, display the error string as an error on the page.
* Add the public/uploads/assets directory to new installs.
* Add some comments explaining this code so I remember what it does next time.
2016-07-10 18:43:00 -07:00
snipe
a9f060e768
Removed extraneous comments
2016-07-09 18:19:19 -07:00
snipe
9f4e0491ed
Fixes error in license checkout
2016-07-07 04:13:08 -07:00
snipe
f2ddc7b0ae
Added purchase cost and purchase date to listing
2016-07-07 02:07:21 -07:00
snipe
01b01c6479
Fixes #2149
2016-07-07 01:13:31 -07:00
snipe
0c98390eef
Hide bulk actions, checkbox and checkout/in if deleted
2016-06-29 04:19:37 -07:00
snipe
6d5bc64b2b
Another fix for status label types
...
This is a little janky, as it breaks up the errors into multiple screens if you don't have a status label type AND don't have a name. This is because the model-level validation won't work since we transmogrify that dropdown list of status label types into boolean values for the DB. Should eventually find a less clunky way to handle this, but needed to get a fix in now.
2016-06-28 14:52:11 -07:00
snipe
483bf1b309
Merge branch 'v3' of github.com:snipe/snipe-it into v3
2016-06-28 12:19:19 -07:00
snipe
e4275bd3d3
Fixes status label inline creation
2016-06-28 12:19:05 -07:00
Daniel Meltzer
d484636bba
Add model number column to the hardware list. ( #2204 )
...
* Add model number column to the hardware list and allow searching based on model number. Column is hidden by default.
* Fix sorting. Add scope to order by model number.
2016-06-27 22:32:40 -07:00
snipe
82d19fc704
Merge pull request #2201 from dmeltzer/fix-user-creation-values
...
UserController::postCreate - Store all request information.
2016-06-27 21:12:49 -07:00
Daniel Meltzer
b1c28d7965
Move checks back into methods instead of having an extra helper method. Also remove unnecessary lock_passwords checks because there is a check at the top of the method that does this already.
2016-06-28 00:11:59 -04:00
snipe
6ea74f9fc3
Merge pull request #2203 from dmeltzer/display-error-if-import-upload-fails
...
If the move of the uploaded import file fails, return an error message.
2016-06-27 20:55:51 -07:00
Daniel Meltzer
278be52f7b
Show the exception message if APP_DEBUG is enabled.
2016-06-27 23:54:45 -04:00
Daniel Meltzer
ee1f983114
If the move of the uploaded import file fails, return a message. Fixes an issue reported on gitter today where bad permissions on the upload directory didn't provide any feedback.
2016-06-27 23:37:15 -04:00
Daniel Meltzer
d3b035cfe9
Fix integrity constraint violation on sqlite.
...
If the requestable checkbox was not checked, it did not exist in the request.
Setting requestable to null in such a case would cause a violation because it should be 0/1.
Also fix a copy/paste where we reset requestable after checking for rtd_location_id.
2016-06-27 23:16:03 -04:00
Daniel Meltzer
cf29a4a319
Extract common data from UserController postCreate and postEdit into a helper method. Use this method to store data about user. Fixes #2200
2016-06-27 22:48:09 -04:00
snipe
2867cd523d
Fixes #2192
2016-06-22 17:14:49 -07:00
snipe
0cf563ae5b
Show admin in maintenances
2016-06-22 17:04:47 -07:00
snipe
95beddf613
Use helper library for asset list
2016-06-22 16:58:36 -07:00
snipe
e5a5de6a0d
Just use inline validation instead of form request, since it's a one-off
2016-06-22 15:59:00 -07:00
snipe
0ca85f8a8a
Updates to components
2016-06-22 14:55:17 -07:00
snipe
4ed8ff5576
Formatting fixes for coding standards
2016-06-22 12:27:41 -07:00
Daniel Meltzer
f6d47887c4
Flash input on model validation errors when creating/editing assets.
2016-06-22 15:20:49 -04:00
Daniel Meltzer
b9f72a2afa
Flash errors to session on edit as well.
2016-06-22 12:55:09 -04:00
Daniel Meltzer
560115e758
If we survive form request validation but fail model validation, ensure that the errors are actually flashed to the session. Another thing that will be better fixed in the future when handling json nicer.
2016-06-22 12:55:09 -04:00
snipe
dcdc1a6e7b
Merge pull request #2185 from dmeltzer/slack-fixes
...
A few slack fixes
2016-06-21 15:45:22 -07:00
snipe
508e7acb54
Bump up memory for LDAP import of large number of users
2016-06-21 12:22:10 -07:00
Daniel Meltzer
f004facb06
A few slack fixes
...
1) Missing $admin_user in AccessoriesController::postCheckout(). Fixes #2183
2) AssetsController::postCheckin used the hardware url for the user link, not the user url
2016-06-21 09:43:32 -04:00
Daniel Meltzer
4715cc6447
Pass user id to importer. This shows items imported through web interface as created by the appropriate user. Also save warranty_months to item, not just read it from csv. Fixes #2175
2016-06-20 00:09:17 -04:00
snipe
87352470c0
Added sortable created_at to assets and users
2016-06-15 21:06:17 -07:00
snipe
6a277a5391
Added inheritance back into users/groups
2016-06-15 20:45:45 -07:00
snipe
464ecc7cc6
Moved group sync
2016-06-15 11:51:10 -07:00
snipe
2df71be321
No need to update the user again
2016-06-13 11:30:47 -07:00
snipe
2daed3c271
Fix for custom fields not saving
2016-06-10 16:36:46 -07:00
snipe
c1a3592059
Fixes #2130
2016-06-10 08:29:43 -07:00
Daniel Meltzer
e9605891f3
Merge upstream and fix changes.
2016-06-10 07:44:45 -05:00
Daniel Meltzer
9c4c91063f
Merge branch 'v3' into Fix-Asset-Creation-with-old-data
2016-06-10 07:35:30 -05:00
Daniel Meltzer
4e74c553bd
Fix editing of assets. This also uses the asset form request for validation.
2016-06-10 07:33:33 -05:00
snipe
9e8b76d348
Use updated $request->input methods for 5.2
2016-06-10 05:16:27 -07:00
snipe
a0901247a3
Let superadmins through companyable trait
2016-06-10 04:07:27 -07:00
snipe
02a9394cd9
Merge remote-tracking branch 'origin/v3' into v3-master
2016-06-10 03:41:03 -07:00
snipe
ec4bc6c2af
Allow superadmins to print labels
2016-06-10 03:40:49 -07:00
snipe
f44d98924d
Removed erroneous call to nonexistent model
2016-06-09 14:42:13 -07:00
snipe
c91c1f92cd
Fixes #2132
2016-06-09 13:27:50 -07:00
snipe
845b182fdf
Fixes format for users in category view
2016-06-09 02:26:43 -07:00
snipe
2b5fb04ba9
Allow admin to add user on checkout screen
2016-06-09 00:36:52 -07:00
snipe
bb758d618b
Merge branch 'v3' of github.com:snipe/snipe-it into v3
2016-06-08 23:28:53 -07:00
snipe
51742d66df
Removed uneeded size array
2016-06-08 23:28:21 -07:00
Daniel Meltzer
9648c6f1d3
Fix license Checkout.
...
A mistake in the sqlite porting led to "Please select an asset"
disappearing. This centralizes that code in Helper, and uses the code
in Licensescontroller and componentscontroller.
Also use the proper name on the components checkout page.
AssetMaintencesController reuses the same underlying code as
licensescontroller, but we don't want "Please select an asset" to be an
option there, so I'm not changing that code.
2016-06-07 07:58:08 -05:00
snipe
75eb2bbe09
Janky-ass form request stuff
2016-06-06 21:02:06 -07:00
snipe
d4e231d5d4
Save permissions on new user
2016-06-06 18:56:43 -07:00
snipe
75dfb87671
Use form request for user add/edit to handle password and password confirmation
2016-06-06 14:15:50 -07:00
snipe
23936e465d
Merge pull request #2123 from dmeltzer/fix-setup-on-windows
...
Fix missing posix_getpwuid on windows.
2016-06-06 12:31:30 -07:00
snipe
21506f4101
Merge pull request #2120 from dmeltzer/add-clone-to-models-index
...
Add clone action to Assetmodels index page.
2016-06-06 12:29:54 -07:00
Daniel Meltzer
ea3e11e011
Fix missing posix_getpwuid on windows.
...
This isn't a perfect solution. It basically just nullifies the check on
windows. I'm not sure if IIS can run as a nonelevated user though, so
perhaps thats the best choice. Regardless, this fixes the setup.
2016-06-06 07:43:05 -05:00
Daniel Meltzer
a89511674b
Add clone icon to Assetmodels index page.
2016-06-05 10:00:31 -05:00
Daniel Meltzer
cd9cca9c6b
Modify Helper::categoryList() to take a category type parameter.
...
This allows for centralizing the category fetching code more and fixes
an error in asset model viewing (#2118 ). Also add a few translated
strings and standardize on a base of 'Select a *' for the default value
in our lists.
2016-06-05 09:47:44 -05:00
snipe
f8ac9a3f77
Fixes #2110
2016-06-03 11:48:20 -07:00
snipe
c5d96812f3
Fixed erronerously removed save methods
2016-06-02 17:22:23 -07:00
snipe
2d5a0deb31
Eager loading for requestable assets account page
2016-06-02 02:57:22 -07:00
snipe
dddb0f7267
Fixed group error message
2016-06-02 02:46:49 -07:00
snipe
46d3a784a2
Fixes groups for cloning users
2016-06-02 00:41:10 -07:00
snipe
04610e7864
Just use model validation for new user
2016-06-01 18:04:11 -07:00
snipe
cffa76e627
Find first record, instead of hardcoded id 1
2016-06-01 15:50:50 -07:00
snipe
9c4cd9c3ce
Save email/username format in settings controller
2016-06-01 15:45:26 -07:00
Daniel Meltzer
3ddaa88694
Fix image processing when editing an existing asset. Also reenable the image scaling on the server, but boost limit to 800x800
2016-05-31 19:50:58 -05:00
Daniel Meltzer
fcc79456fd
Play with a mobile friendly capture-image-from device when adding an asset. This also involved rewriting the upload to be all ajaxy and stuff
2016-05-31 19:50:58 -05:00
Daniel Meltzer
4af5cdd64f
asset_id is not allowed to be null in asset_log according to db schema. 0 it out here to make sqlite happy.
2016-05-31 19:41:14 -05:00
Daniel Meltzer
0fa82743a1
Remove remaining DB::Raw(concat) calls to make things more sqlite friendly. This adds one new method to the Asset Model to return the formatted string that was used by the license and asset maintence controller. It also fixes a potential sqlite-only issue where '' and null are different.
2016-05-31 19:41:14 -05:00
Daniel Meltzer
45d93ffa8c
Use a transaction while creating license seats. Makes adding a license with a large number of seats much more managable.
2016-05-31 19:41:14 -05:00
Daniel Meltzer
4b98711e07
Replace the assorted concat() methods with a full_name method in the User model and adjust queries accordingly
2016-05-31 19:41:14 -05:00
Daniel Meltzer
004c63cd5d
Improve web imported. Show a list of all items with that were not imported correctly after import. Modify ObjectImporter and add a web-import parameter that causes it to spit out json errors exclusively. Long term I want to separate the console command and the logic so we aren't calling the console command directly, but rather a class that does everything. This would allow for easier progress reports and ajaxification.
2016-05-26 21:29:29 -05:00
Daniel Meltzer
715e385925
Two things. One, try to make the import uploads directory if it doesn't exist. Two, call the object importer instead of the old asset importer. TODO: Feed output from object importer back to import page.
2016-05-26 08:00:00 -05:00