run through pint
This commit is contained in:
@@ -4,7 +4,6 @@ namespace App\Policies\Branch;
|
||||
|
||||
use App\Models\Branch\Branch;
|
||||
use App\Models\User;
|
||||
use Illuminate\Auth\Access\Response;
|
||||
|
||||
class BranchPolicy
|
||||
{
|
||||
|
||||
@@ -4,7 +4,6 @@ namespace App\Policies\Order\Loan;
|
||||
|
||||
use App\Models\Order\Loan\LoanOrder;
|
||||
use App\Models\User;
|
||||
use Illuminate\Auth\Access\Response;
|
||||
|
||||
class LoanOrderPolicy
|
||||
{
|
||||
|
||||
@@ -4,7 +4,6 @@ namespace App\Policies\Order\Loan;
|
||||
|
||||
use App\Models\Order\Loan\LoanType;
|
||||
use App\Models\User;
|
||||
use Illuminate\Auth\Access\Response;
|
||||
|
||||
class LoanTypePolicy
|
||||
{
|
||||
|
||||
@@ -4,7 +4,6 @@ namespace App\Policies\System\Location;
|
||||
|
||||
use App\Models\System\Location\Province;
|
||||
use App\Models\User;
|
||||
use Illuminate\Auth\Access\Response;
|
||||
|
||||
class ProvincePolicy
|
||||
{
|
||||
@@ -16,7 +15,7 @@ class ProvincePolicy
|
||||
if ($user->isAdmin()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -28,7 +27,7 @@ class ProvincePolicy
|
||||
if ($user->isAdmin()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -40,7 +39,7 @@ class ProvincePolicy
|
||||
if ($user->isAdmin()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -52,7 +51,7 @@ class ProvincePolicy
|
||||
if ($user->isAdmin()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -64,7 +63,7 @@ class ProvincePolicy
|
||||
if ($user->isAdmin()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -76,7 +75,7 @@ class ProvincePolicy
|
||||
if ($user->isAdmin()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -88,7 +87,7 @@ class ProvincePolicy
|
||||
if ($user->isAdmin()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,6 @@ namespace App\Policies\System\Roles;
|
||||
|
||||
use App\Models\System\Roles\Permission;
|
||||
use App\Models\User;
|
||||
use Illuminate\Auth\Access\Response;
|
||||
|
||||
class PermissionPolicy
|
||||
{
|
||||
|
||||
@@ -4,7 +4,6 @@ namespace App\Policies\System\Roles;
|
||||
|
||||
use App\Models\System\Roles\Role;
|
||||
use App\Models\User;
|
||||
use Illuminate\Auth\Access\Response;
|
||||
|
||||
class RolePolicy
|
||||
{
|
||||
@@ -57,7 +56,7 @@ class RolePolicy
|
||||
])) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if ($user->isAdmin()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
namespace App\Policies;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Auth\Access\Response;
|
||||
|
||||
class UserPolicy
|
||||
{
|
||||
@@ -99,7 +98,7 @@ class UserPolicy
|
||||
if ($model->email === 'nurmuhammet@mail.com') {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if ($user->isAdmin()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user