Browse Source

Fix apptoken creation

Seems there was a small bug in #15936
This inverts the check and add the property

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
tags/v18.0.0beta1
Roeland Jago Douma 4 years ago
parent
commit
17a6bb95c2
No account linked to committer's email address

+ 1
- 1
settings/Settings/Personal/Security.php 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', [

+ 3
- 3
settings/js/vue-settings-personal-security.js
File diff suppressed because it is too large
View File


+ 1
- 1
settings/js/vue-settings-personal-security.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
settings/src/components/AuthToken.vue 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">

+ 4
- 0
settings/src/components/AuthTokenSection.vue View File

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

Loading…
Cancel
Save