Merge pull request #17253 from nextcloud/fix/apptoken_creation

Fix apptoken creation
This commit is contained in:
Roeland Jago Douma 2019-09-25 10:53:58 +02:00 committed by GitHub
commit e26284df9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 6 deletions

View file

@ -88,7 +88,7 @@ class Security implements ISettings {
$this->initialStateService->provideInitialState(
'settings',
'can_create_app_token',
$this->userSession->getImpersonatingUserID() !== null
$this->userSession->getImpersonatingUserID() === null
);
return new TemplateResponse('settings', 'settings/personal/security', [

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -60,7 +60,7 @@
<!-- TODO: add text/longtext with some description -->
{{ t('settings', 'Rename') }}
</ActionButton>
<!-- revoke & wipe -->
<template v-if="token.canDelete">
<template v-if="token.type !== 2">

View file

@ -65,6 +65,10 @@
type: Array,
required: true,
},
canCreateToken: {
type: Boolean,
required: true
}
},
components: {
AuthTokenSetupDialogue,