Settings auth checks
This commit is contained in:
parent
42de40e320
commit
cd874c5f58
|
@ -27,7 +27,7 @@ class OptionsController extends Controller
|
||||||
|
|
||||||
public function saveSettings(Request $request)
|
public function saveSettings(Request $request)
|
||||||
{
|
{
|
||||||
if (Auth::user()->hasPermission('admin.settings.edit'))
|
if (Auth::user()->can('admin.settings.edit'))
|
||||||
{
|
{
|
||||||
foreach($request->all() as $optionName => $option)
|
foreach($request->all() as $optionName => $option)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue