Update FormOtherController.php
This commit is contained in:
@@ -336,7 +336,7 @@ class FormOtherController extends Controller
|
|||||||
foreach ($roles as $role) {
|
foreach ($roles as $role) {
|
||||||
$users = Admin::getUserByRoleName($role)->filter(function ($user) use ($role, $cabang_id) {
|
$users = Admin::getUserByRoleName($role)->filter(function ($user) use ($role, $cabang_id) {
|
||||||
// Include 'Marketing Information System' without cabang filtering
|
// Include 'Marketing Information System' without cabang filtering
|
||||||
if ($role === 'Marketing Information System') {
|
if ($role === 'Marketing Information System' || $role === 'Admin Region' || $role === 'Marketing Operational Manager Region') {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -410,7 +410,7 @@ class FormOtherController extends Controller
|
|||||||
foreach ($roles as $role) {
|
foreach ($roles as $role) {
|
||||||
$users = Admin::getUserByRoleName($role)->filter(function ($user) use ($role, $cabang_id) {
|
$users = Admin::getUserByRoleName($role)->filter(function ($user) use ($role, $cabang_id) {
|
||||||
// Include 'Marketing Information System' without cabang filtering
|
// Include 'Marketing Information System' without cabang filtering
|
||||||
if ($role === 'Marketing Information System') {
|
if ($role === 'Marketing Information System' || $role === 'Head of Sales Marketing' || $role === 'Marketing Operational Manager Region') {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user