After upgrading to 3.2 canManage stopped working

I was using this code:

public static function canAccess(): bool
{
    return auth()->user()->canManageSettings();
}


and it was working.

I have updated Filament 3 from v3.1.10 to v3.2.25 a few minutes ago and now I had to commented the whole function because the error is:

Call to undefined method App\Models\User::canManageSettings()


Any idea why was it deprecated and what should I use instead?
Was this page helpful?