Reapply ember-can upgrade (#3111)

* chore: 🤖 reapply previous ember-can upgrade from #3093

* chore: 🤖 add missing ember-inflector dependency

* chore: 🤖 move @ember/string to be a dependency in desktop

* chore: 🤖 re-run pnpm install to resolve lockfile dupe key error

* chore: 🤖 remove unused abilities service injections

Co-Authored-By: Lisbet Alvarez <107949262+lisbet-alvarez@users.noreply.github.com>

---------

Co-authored-by: Lisbet Alvarez <107949262+lisbet-alvarez@users.noreply.github.com>
This commit is contained in:
hashiccandLisbet Alvarez authored and GitHub committed 2026-02-24 13:48:34 -05:00
1 parent 772857dbad
commit 3a847605ed
108 files changed
+533 -454

No files matched your search

@@ -15,7 +15,7 @@ export default class ScopesScopeAuthMethodsAuthMethodManagedGroupsIndexControlle
// =services
@service can;
@service abilities;
@service intl;
@service router;
@@ -28,10 +28,10 @@ export default class ScopesScopeAuthMethodsAuthMethodManagedGroupsIndexControlle
* @type {string}
*/
get messageDescription() {
const canList = this.can.can('list model', this.authMethod, {
const canList = this.abilities.can('list model', this.authMethod, {
collection: 'managed-groups',
});
const canCreate = this.can.can('create model', this.authMethod, {
const canCreate = this.abilities.can('create model', this.authMethod, {
collection: 'managed-groups',
});
const resource = this.intl.t('resources.managed-group.title_plural');
@@ -75,7 +75,7 @@ export default class ScopesScopeAuthMethodsAuthMethodManagedGroupsIndexControlle
)
async save(managedGroup) {
await managedGroup.save();
if (this.can.can('read model', managedGroup)) {
if (this.abilities.can('read model', managedGroup)) {
await this.router.transitionTo(
'scopes.scope.auth-methods.auth-method.managed-groups.managed-group',
managedGroup,