From 105d334169628a5c9c69ad3baa9b15a5afc4fe6d Mon Sep 17 00:00:00 2001 From: James Ellis Date: Fri, 16 Feb 2018 15:54:21 +1100 Subject: [PATCH] FIX: ensure correct group code is used when requiring a default group --- src/models/MailgunEvent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/MailgunEvent.php b/src/models/MailgunEvent.php index 9bec806..b0a5efc 100644 --- a/src/models/MailgunEvent.php +++ b/src/models/MailgunEvent.php @@ -118,7 +118,7 @@ public function requireDefaultRecords() { final private function createGroupsAndPermissions() { - $manager_code = 'MAILGUN_MANAGERS'; + $manager_code = 'mailgun-managers'; $manager_group = \Group::get()->filter('Code', $manager_code)->first(); if(empty($manager_group->ID)) { $manager_group = \Group::create();