-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit d55c176 Merge: 93ff952 c0451fe Author: snipe <[email protected]> Date: Wed Mar 16 18:35:42 2022 +0000 Merge pull request #10831 from snipe/merges/master_down_to_develop_march_16 v6.0.0-RC-5 - Merges master down to develop commit c0451fe Author: snipe <[email protected]> Date: Wed Mar 16 18:10:17 2022 +0000 Bumped version to v6.0.0-RC-5 Signed-off-by: snipe <[email protected]> commit 0f95802 Author: snipe <[email protected]> Date: Wed Mar 16 18:05:47 2022 +0000 Fixed mis-automerge Signed-off-by: snipe <[email protected]> commit 9db8bd7 Author: snipe <[email protected]> Date: Wed Mar 16 18:02:07 2022 +0000 Merging master down into develop Signed-off-by: snipe <[email protected]> commit 93ff952 Merge: 40a9470 89ddbdd Author: snipe <[email protected]> Date: Wed Mar 16 10:04:58 2022 -0700 Merge pull request #10829 from snipe/features/add_statuslabel_filter_by_type_in_api Added filter by status_type in StatusLabels API index endpoint commit 89ddbdd Author: snipe <[email protected]> Date: Wed Mar 16 16:53:18 2022 +0000 Fixed comment Signed-off-by: snipe <[email protected]> commit 7498fe3 Author: snipe <[email protected]> Date: Wed Mar 16 16:45:03 2022 +0000 Removed extra space because pedantry Signed-off-by: snipe <[email protected]> commit babf7c0 Author: snipe <[email protected]> Date: Wed Mar 16 16:38:45 2022 +0000 Added ability to filter status label index endpoint by status type Signed-off-by: snipe <[email protected]> commit 40a9470 Merge: f499dcf 781b426 Author: snipe <[email protected]> Date: Wed Mar 16 08:54:10 2022 -0700 Merge pull request #10828 from snipe/fixes/10826_parse_error_on_print_all Fixed #10826 - parse error on translation string for print all assets commit 781b426 Author: snipe <[email protected]> Date: Wed Mar 16 08:50:47 2022 -0700 Fixed #10826 - parse error on translation string for print all assets Signed-off-by: snipe <[email protected]> commit f499dcf Merge: 84aa26d 54d6a4d Author: snipe <[email protected]> Date: Wed Mar 16 08:25:29 2022 -0700 Merge pull request #10827 from snipe/fixes/modal_dropdowns_broken Fixed #10825 - selectlists in modals b0rked commit 54d6a4d Author: snipe <[email protected]> Date: Wed Mar 16 08:23:50 2022 -0700 Fixed #10825 - selectlists in modals b0rked Signed-off-by: snipe <[email protected]> commit 84aa26d Merge: 8984b3a 14bd07e Author: snipe <[email protected]> Date: Thu Mar 10 13:02:45 2022 -0800 Merge pull request #10728 from Godmartinz/gh10191-css-dropdownmenu Fixed #10191 - font color contrast on mobile menu commit 8984b3a Merge: d06ef4b cdc0805 Author: snipe <[email protected]> Date: Thu Mar 10 10:40:33 2022 -0800 Merge pull request #10812 from inietov/fixes/CarbonExceptions_InvalidFormatException_DateTime_develop Fixes Carbon\Exceptions\InvalidFormatException: DateTime::__construct(): Failed to parse time string develop commit cdc0805 Author: Ivan Nieto Vivanco <[email protected]> Date: Thu Mar 10 12:07:07 2022 -0600 Sanitize dates input in the importer before saving commit 14bd07e Merge: 4435ea9 16fd109 Author: Godfrey M <[email protected]> Date: Thu Mar 3 10:14:30 2022 -0800 gerge branchevelop' into gh10191-css-dropdownmenu commit 4435ea9 Author: Godfrey M <[email protected]> Date: Thu Mar 3 09:47:11 2022 -0800 removes changes to mix-manifest commit f115385 Author: Godfrey M <[email protected]> Date: Thu Mar 3 09:32:05 2022 -0800 C&P mix-manifest to be tracked commit 708dc08 Author: Godfrey M <[email protected]> Date: Wed Feb 23 11:17:44 2022 -0800 mixes color contrast on dropdown menu from navbar on file Signed-off-by: snipe <[email protected]>
- Loading branch information
Showing
34 changed files
with
248 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?php | ||
|
||
namespace App\Console\Commands; | ||
|
||
use Illuminate\Console\Command; | ||
|
||
class KillAllSessions extends Command | ||
{ | ||
/** | ||
* The name and signature of the console command. | ||
* | ||
* @var string | ||
*/ | ||
protected $signature = 'snipeit:global-logout {--force : Skip the danger prompt; assuming you enter "y"} '; | ||
|
||
/** | ||
* The console command description. | ||
* | ||
* @var string | ||
*/ | ||
protected $description = 'This command will destroy all web sessions on disk and will force a re-login for all users.'; | ||
|
||
/** | ||
* Create a new command instance. | ||
* | ||
* @return void | ||
*/ | ||
public function __construct() | ||
{ | ||
parent::__construct(); | ||
} | ||
|
||
/** | ||
* Execute the console command. | ||
* | ||
* @return mixed | ||
*/ | ||
public function handle() | ||
{ | ||
|
||
if (!$this->option('force') && !$this->confirm("****************************************************\nTHIS WILL FORCE A LOGIN FOR ALL LOGGED IN USERS.\n\nAre you SURE you wish to continue? ")) { | ||
return $this->error("Session loss not confirmed"); | ||
} | ||
|
||
$session_files = glob(storage_path("framework/sessions/*")); | ||
|
||
$count = 0; | ||
foreach ($session_files as $file) { | ||
|
||
if (is_file($file)) | ||
unlink($file); | ||
$count++; | ||
} | ||
\DB::table('users')->update(['remember_token' => null]); | ||
|
||
$this->info($count. ' sessions cleared!'); | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -235,6 +235,7 @@ public function edit($assetId = null) | |
->with('statuslabel_types', Helper::statusTypeList()); | ||
} | ||
|
||
|
||
/** | ||
* Returns a view that presents information about an asset for detail view. | ||
* | ||
|
@@ -309,6 +310,7 @@ public function update(ImageUploadRequest $request, $assetId = null) | |
$asset->location_id = $request->input('rtd_location_id', null); | ||
} | ||
|
||
|
||
if ($request->filled('image_delete')) { | ||
try { | ||
unlink(public_path().'/uploads/assets/'.$asset->image); | ||
|
@@ -401,6 +403,24 @@ public function destroy($assetId) | |
return redirect()->route('hardware.index')->with('success', trans('admin/hardware/message.delete.success')); | ||
} | ||
|
||
/** | ||
* Searches the assets table by serial, and redirects if it finds one | ||
* | ||
* @author [A. Gianotto] [<[email protected]>] | ||
* @since [v3.0] | ||
* @return Redirect | ||
*/ | ||
public function getAssetBySerial(Request $request) | ||
{ | ||
$topsearch = ($request->get('topsearch')=="true"); | ||
|
||
if (!$asset = Asset::where('serial', '=', $request->get('serial'))->first()) { | ||
return redirect()->route('hardware.index')->with('error', trans('admin/hardware/message.does_not_exist')); | ||
} | ||
$this->authorize('view', $asset); | ||
return redirect()->route('hardware.show', $asset->id)->with('topsearch', $topsearch); | ||
} | ||
|
||
/** | ||
* Searches the assets table by asset tag, and redirects if it finds one | ||
* | ||
|
@@ -420,6 +440,7 @@ public function getAssetByTag(Request $request) | |
return redirect()->route('hardware.show', $asset->id)->with('topsearch', $topsearch); | ||
} | ||
|
||
|
||
/** | ||
* Return a QR code for the asset | ||
* | ||
|
@@ -792,6 +813,7 @@ public function overdueForAudit() | |
return view('hardware/audit-overdue'); | ||
} | ||
|
||
|
||
public function auditStore(Request $request, $id) | ||
{ | ||
$this->authorize('audit', Asset::class); | ||
|
@@ -822,6 +844,7 @@ public function auditStore(Request $request, $id) | |
$asset->location_id = $request->input('location_id'); | ||
} | ||
|
||
|
||
if ($asset->save()) { | ||
$file_name = ''; | ||
// Upload an image, if attached | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<?php | ||
return array ( | ||
'app_version' => 'v6.0.0-RC-4', | ||
'full_app_version' => 'v6.0.0-RC-4 - build 6754-gafd83311a', | ||
'build_version' => '6754', | ||
'app_version' => 'v6.0.0-RC-5', | ||
'full_app_version' => 'v6.0.0-RC-5 - build 6772-g7cbcd2d95', | ||
'build_version' => '6772', | ||
'prerelease_version' => '', | ||
'hash_version' => 'gafd83311a', | ||
'full_hash' => 'v6.0.0-RC-4-1-gafd83311a', | ||
'branch' => 'develop', | ||
'hash_version' => 'g7cbcd2d95', | ||
'full_hash' => 'v6.0.0-RC-5-19-g7cbcd2d95', | ||
'branch' => 'merges/master_down_to_develop_march_16', | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.