feat: initialize role-based access control (RBAC) system with multi-module UI and administrative management controllers
This commit is contained in:
@@ -81,7 +81,7 @@ class ProjectController extends Controller
|
||||
->where(function ($q) {
|
||||
$q->whereIn('user_type', ['admin'])
|
||||
->orWhereHas('roles', function ($rq) {
|
||||
$rq->whereIn('name', ['Project Manager', 'Main Contractor Admin', 'Super Admin', 'admin', 'Contractor']);
|
||||
$rq->whereIn('name', ['Project Manager', 'Main Contractor Admin', 'Super Admin', 'admin', 'Construction Supervisor', 'Site Technical']);
|
||||
});
|
||||
})
|
||||
->with('employeeProfile')
|
||||
@@ -257,7 +257,7 @@ class ProjectController extends Controller
|
||||
->where(function ($q) {
|
||||
$q->whereIn('user_type', ['admin'])
|
||||
->orWhereHas('roles', function ($rq) {
|
||||
$rq->whereIn('name', ['Project Manager', 'Main Contractor Admin', 'Super Admin', 'admin', 'Contractor']);
|
||||
$rq->whereIn('name', ['Project Manager', 'Main Contractor Admin', 'Super Admin', 'admin', 'Construction Supervisor', 'Site Technical']);
|
||||
});
|
||||
})
|
||||
->with('employeeProfile')
|
||||
@@ -437,7 +437,7 @@ class ProjectController extends Controller
|
||||
->where(function ($q) {
|
||||
$q->whereIn('user_type', ['admin'])
|
||||
->orWhereHas('roles', function ($rq) {
|
||||
$rq->whereIn('name', ['Project Manager', 'Main Contractor Admin', 'Super Admin', 'admin', 'Contractor']);
|
||||
$rq->whereIn('name', ['Project Manager', 'Main Contractor Admin', 'Super Admin', 'admin', 'Construction Supervisor', 'Site Technical']);
|
||||
});
|
||||
})
|
||||
->with(['employeeProfile', 'roles'])
|
||||
|
||||
Reference in New Issue
Block a user