wip on loan orders

This commit is contained in:
2023-11-30 17:27:54 +05:00
parent b07b919f18
commit 5ebcc60bd5
2 changed files with 26 additions and 13 deletions

View File

@@ -2,7 +2,7 @@
namespace App\Providers;
// use Illuminate\Support\Facades\Gate;
use Illuminate\Support\Facades\Gate;
use App\Models\Branch\Branch;
use App\Models\Order\Loan\LoanOrder;
use App\Models\Order\Loan\LoanType;
@@ -43,6 +43,8 @@ class AuthServiceProvider extends ServiceProvider
*/
public function boot(): void
{
//
Gate::define('isMe', fn ($user) => $user->isMe());
Gate::define('isAdmin', fn ($user) => $user->isAdmin());
Gate::define('systemUser', fn ($user) => $user->isAdmin() || $user->isOperator());
}
}