diff --git a/ui/admin/app/routes/scopes/scope/groups.js b/ui/admin/app/routes/scopes/scope/groups.js index 1784799cc..e1346ae4d 100644 --- a/ui/admin/app/routes/scopes/scope/groups.js +++ b/ui/admin/app/routes/scopes/scope/groups.js @@ -57,7 +57,11 @@ export default class ScopesScopeGroupsRoute extends Route { ) async save(group) { await group.save(); - await this.transitionTo('scopes.scope.groups.group', group); + if (this.can.can('read model', group)) { + await this.transitionTo('scopes.scope.groups.group', group); + } else { + await this.transitionTo('scopes.scope.groups'); + } this.refresh(); } diff --git a/ui/admin/app/templates/scopes/scope/groups/index.hbs b/ui/admin/app/templates/scopes/scope/groups/index.hbs index 1e5f038db..2026ac1c5 100644 --- a/ui/admin/app/templates/scopes/scope/groups/index.hbs +++ b/ui/admin/app/templates/scopes/scope/groups/index.hbs @@ -71,7 +71,6 @@ as |message| > - {{t 'resources.group.description'}} {{#if (can 'list collection' this.scope collection='groups')}} {{! can list (at least): show default welcome message}} {{t 'resources.group.description'}}