Merge branch 'fronkdev' into 'master'
Added canPreorder check in PreorderController::init() See merge request fronk/thetool!2086
This commit is contained in:
@@ -11,7 +11,7 @@ class PreorderController extends mfBaseController {
|
|||||||
|
|
||||||
$isApiWhitelist = (isset($_GET['do']) && $_GET['do'] === 'getFCPsForCampaign' && $this->action === 'Api');
|
$isApiWhitelist = (isset($_GET['do']) && $_GET['do'] === 'getFCPsForCampaign' && $this->action === 'Api');
|
||||||
|
|
||||||
if (!$me->is(["Admin", "netowner", "salespartner", "preorderfront"])) {
|
if (!$me->is(["Admin", "netowner", "salespartner", "preorderfront"]) && !$me->can("Preorder")) {
|
||||||
if (!$isApiWhitelist) {
|
if (!$isApiWhitelist) {
|
||||||
$this->redirect("Dashboard");
|
$this->redirect("Dashboard");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user