mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
Remove form request from get LDAP method
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
130e0c6242
commit
3886da8941
|
@ -846,11 +846,11 @@ class SettingsController extends Controller
|
|||
*
|
||||
* @since [v4.0]
|
||||
*/
|
||||
public function getLdapSettings(StoreLdapSettings $request) : View
|
||||
public function getLdapSettings() : View
|
||||
{
|
||||
$setting = Setting::getSettings();
|
||||
$groups = Group::pluck('name', 'id');
|
||||
return view('settings.ldap', compact('setting', 'groups'))->withErrors($setting->getErrors());
|
||||
return view('settings.ldap', compact('setting', 'groups'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -861,7 +861,6 @@ class SettingsController extends Controller
|
|||
*/
|
||||
public function postLdapSettings(StoreLdapSettings $request) : RedirectResponse
|
||||
{
|
||||
\Log::error('Controller loaded');
|
||||
if (is_null($setting = Setting::getSettings())) {
|
||||
return redirect()->to('admin')->with('error', trans('admin/settings/message.update.error'));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue