Settings auth checks

This commit is contained in:
Miguel Nogueira 2020-08-31 18:36:38 +01:00
parent 42de40e320
commit cd874c5f58

View File

@ -27,7 +27,7 @@ class OptionsController extends Controller
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)
{