Fix - login screen does not show up
This commit is contained in:
parent
a876c7b301
commit
dba534ba21
2 changed files with 17 additions and 13 deletions
|
@ -20,7 +20,7 @@ export default class List extends Component {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<h2>{t('Mailtrain 2 beta')}</h2>
|
<h2>{t('Mailtrain 2 beta')}</h2>
|
||||||
<div>{t('Build') + ' 2019-07-29-0947'}</div>
|
<div>{t('Build') + ' 2019-07-29-0959'}</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,6 +32,7 @@ export function getDefaultNamespace(permissions) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function namespaceCheckPermissions(createOperation) {
|
export function namespaceCheckPermissions(createOperation) {
|
||||||
|
if (mailtrainConfig.user) {
|
||||||
return {
|
return {
|
||||||
createEntityInUsersNamespace: {
|
createEntityInUsersNamespace: {
|
||||||
entityTypeId: 'namespace',
|
entityTypeId: 'namespace',
|
||||||
|
@ -44,4 +45,7 @@ export function namespaceCheckPermissions(createOperation) {
|
||||||
requiredOperations: ['view']
|
requiredOperations: ['view']
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
} else {
|
||||||
|
return {};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue