Skip to content

A free open source IT asset/license management system

removes postslack from settings controller

Godfrey M17f1772143bb
diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.php
index 6daaabdc9f..7e01ff3fa1 100755
--- a/app/Http/Controllers/SettingsController.php
+++ b/app/Http/Controllers/SettingsController.php
@@ -679,33 +679,6 @@ class SettingsController extends Controller
return view('settings.slack', compact('setting'));
}
- /**
- * Return a form to allow a super admin to update settings.
- *
- * @author [A. Gianotto] [<[email protected]>]
- *
- * @since [v1.0]
- *
- * @return View
- */
- public function postSlack($slack_endpoint,$slack_channel,$slack_botname)
- {
- if (is_null($setting = Setting::getSettings())) {
- return redirect()->to('admin')->with('error', trans('admin/settings/message.update.error'));
- }
-
- $setting->slack_endpoint = $slack_endpoint;
- $setting->slack_channel = $slack_channel;
- $setting->slack_botname = $slack_botname;
-
- if ($setting->save()) {
- return redirect()->route('settings.index')
- ->with('success', trans('admin/settings/message.update.success'));
- }
-
- return redirect()->back()->withInput()->withErrors($setting->getErrors());
- }
-
/**
* Return a form to allow a super admin to update settings.
*