From f808ad437f424f40a4eb68d5218ddf4317ba44b6 Mon Sep 17 00:00:00 2001 From: Andrew Cain Date: Wed, 22 May 2024 11:56:16 +1000 Subject: [PATCH] fix: correct typos in unit role needed for teaching role --- app/models/unit_role.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/unit_role.rb b/app/models/unit_role.rb index bde2d104f..9985a5174 100644 --- a/app/models/unit_role.rb +++ b/app/models/unit_role.rb @@ -150,9 +150,9 @@ def send_weekly_status_email(summary_stats) def ensure_valid_user_for_role if is_convenor? - errors.add :user, 'must have a role that id able to administer units (request admin to adjust user role)' unless user.has_convenor_capability? + errors.add :user, 'must have a role that is able to administer units (request admin to adjust user role)' unless user.has_convenor_capability? else - errors.add :user, 'must have a role that id able to teach units (request admin to adjust user role)' unless user.has_tutor_capability? + errors.add :user, 'must have a role that is able to teach units (request admin to adjust user role)' unless user.has_tutor_capability? end end