Allow to set user_type 'limited'

Change-Id: Ic3942a2150b9dfe57c106eb595b49b774fe8a30c
This commit is contained in:
Michael Albert 2020-10-16 13:30:19 +02:00
parent c604b47adc
commit 931fafc21d
3 changed files with 5 additions and 0 deletions

View File

@ -155,6 +155,7 @@ export const UserList = props => {
choices={[
{ id: null, name: "resources.users.type.default" },
{ id: "free", name: "resources.users.type.free" },
{ id: "limited", name: "resources.users.type.limited" },
]}
/>
<BooleanField source="deactivated" sortable={false} />
@ -274,6 +275,7 @@ export const UserCreate = props => (
choices={[
{ id: null, name: "resources.users.type.default" },
{ id: "free", name: "resources.users.type.free" },
{ id: "limited", name: "resources.users.type.limited" },
]}
/>
<ArrayInput source="threepids">
@ -327,6 +329,7 @@ export const UserEdit = props => {
choices={[
{ id: null, name: "resources.users.type.default" },
{ id: "free", name: "resources.users.type.free" },
{ id: "limited", name: "resources.users.type.limited" },
]}
emptyText="resources.users.type.default"
/>

View File

@ -74,6 +74,7 @@ export default {
type: {
default: "Standard",
free: "Basic",
limited: "Eingeschränkt",
},
helper: {
deactivate: "Deaktivierte Nutzer können nicht wieder aktiviert werden.",

View File

@ -73,6 +73,7 @@ export default {
type: {
default: "Standard",
free: "Basic",
limited: "Limited",
},
helper: {
deactivate: "Deactivated users cannot be reactivated",