From 4671055a52f0cce02744fa37c726c3d2874577d8 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Thu, 28 Oct 2021 13:26:19 +0200 Subject: [PATCH] Corrected typo on get customer role ID method --- application/models/Customers_model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/models/Customers_model.php b/application/models/Customers_model.php index 926f79b3..3af39028 100644 --- a/application/models/Customers_model.php +++ b/application/models/Customers_model.php @@ -255,11 +255,11 @@ class Customers_model extends EA_Model { */ public function get_customer_role_id(): int { - $role = $this->db->get_where('roles', ['slug' => DB_SLUG_ADMIN])->row_array(); + $role = $this->db->get_where('roles', ['slug' => DB_SLUG_CUSTOMER])->row_array(); if (empty($role)) { - throw new RuntimeException('The admin role was not found in the database.'); + throw new RuntimeException('The customer role was not found in the database.'); } return $role['id'];