From c3c383ae69efb3345e378c1845c39af968f402d6 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Mon, 12 Apr 2021 11:15:09 +0100 Subject: [PATCH] Fixed role validation when inviting new users no issue - the `role` argument was not being passed to the `validateRole` method when changing roles --- ghost/admin/app/components/gh-role-selection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/admin/app/components/gh-role-selection.js b/ghost/admin/app/components/gh-role-selection.js index 1a215d5078..20157842b6 100644 --- a/ghost/admin/app/components/gh-role-selection.js +++ b/ghost/admin/app/components/gh-role-selection.js @@ -18,7 +18,7 @@ export default class GhRoleSelectionComponent extends Component { async setRole(roleName) { const role = this.roles.findBy('name', roleName); this.args.setRole(role); - return this.validateRole(); + return this.validateRole(role); } @task