mirror of
https://github.com/wassname/talk.git
synced 2026-07-20 12:40:47 +08:00
add staff to dropdown
This commit is contained in:
@@ -65,6 +65,7 @@ class Table extends Component {
|
||||
label={lang.t('community.role')}
|
||||
onChange={role => this.onRoleChange(row.id, role)}>
|
||||
<Option value={''}>.</Option>
|
||||
<Option value={'STAFF'}>{lang.t('community.staff')}</Option>
|
||||
<Option value={'MODERATOR'}>{lang.t('community.moderator')}</Option>
|
||||
<Option value={'ADMIN'}>{lang.t('community.admin')}</Option>
|
||||
</SelectField>
|
||||
|
||||
+2
-1
@@ -5,7 +5,8 @@ const uuid = require('uuid');
|
||||
// USER_ROLES is the array of roles that is permissible as a user role.
|
||||
const USER_ROLES = [
|
||||
'ADMIN',
|
||||
'MODERATOR'
|
||||
'MODERATOR',
|
||||
'STAFF'
|
||||
];
|
||||
|
||||
// USER_STATUS is the list of statuses that are permitted for the user status.
|
||||
|
||||
Reference in New Issue
Block a user