mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-09 06:24:48 +00:00
Override the default bouncer scope class with a temporary hotfix to the roles issue
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user