fix: 🐛 create-without-read case should redirect to index
This commit is contained in:
1 file changed
+5
-1
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user