mirror of
https://github.com/flarum/core.git
synced 2025-08-30 19:40:02 +02:00
Perform general repo maintenance (#37)
* Perform general repo maintenance - Bump deps - Add Prettier - Add `flarum-tsconfig` for typings support * Move webpack config to devDeps * Use organisation Prettier * Add setup for https://github.com/flarum/flarum-tsconfig/pull/2
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
import app from 'flarum/app';
|
||||
|
||||
app.initializers.add('flarum-suspend', () => {
|
||||
app.extensionData
|
||||
.for('flarum-suspend')
|
||||
.registerPermission({
|
||||
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');
|
||||
permission: 'user.suspend',
|
||||
},
|
||||
'moderate'
|
||||
);
|
||||
});
|
||||
|
Reference in New Issue
Block a user