diff --git a/extensions/suspend/js/src/admin/index.js b/extensions/suspend/js/src/admin/index.js
index <HASH>..<HASH> 100644
--- a/extensions/suspend/js/src/admin/index.js
+++ b/extensions/suspend/js/src/admin/index.js
@@ -1,13 +1,11 @@
-import { extend } from 'flarum/extend';
 import app from 'flarum/app';
-import PermissionGrid from 'flarum/components/PermissionGrid';
 
-app.initializers.add('suspend', () => {
-  extend(PermissionGrid.prototype, 'moderateItems', items => {
-    items.add('suspendUsers', {
+app.initializers.add('flarum-suspend', () => {
+  app.extensionData
+    .for('flarum-suspend')
+    .registerPermission({
       icon: 'fas fa-ban',
       label: app.translator.trans('flarum-suspend.admin.permissions.suspend_users_label'),
       permission: 'user.suspend'
-    });
-  });
+    }, 'moderate');
 });
Admin js changes for admin ux redesign