mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-03 00:15:11 +03:00
Fixed role validation when inviting new users
no issue - the `role` argument was not being passed to the `validateRole` method when changing roles
This commit is contained in:
parent
519ed564b8
commit
c3c383ae69
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user