Skip to content

Commit

Permalink
fix: correct typos in unit role needed for teaching role
Browse files Browse the repository at this point in the history
  • Loading branch information
macite committed May 22, 2024
1 parent 1d208ca commit f808ad4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/unit_role.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f808ad4

Please sign in to comment.