Override the default bouncer scope class with a temporary hotfix to the roles issue

This commit is contained in:
gdarko
2024-02-18 00:13:24 +01:00
parent 1c7274287d
commit e73ab3d4ee
2 changed files with 36 additions and 3 deletions

View File

@@ -4,8 +4,11 @@ namespace InvoiceShelf\Providers;
use Illuminate\Pagination\Paginator;
use Illuminate\Support\ServiceProvider;
use InvoiceShelf\Bouncer\Scopes\DefaultScope;
use InvoiceShelf\Space\InstallUtils;
use Silber\Bouncer\Database\Models as BouncerModels;
class AppServiceProvider extends ServiceProvider
{
/**
@@ -30,7 +33,7 @@ class AppServiceProvider extends ServiceProvider
*/
public function register()
{
//
BouncerModels::scope(new DefaultScope);
}
public function addMenus()