Merge pull request #17253 from nextcloud/fix/apptoken_creation
Fix apptoken creation
This commit is contained in:
commit
e26284df9b
5 changed files with 10 additions and 6 deletions
|
@ -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
|
@ -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">
|
||||
|
|
|
@ -65,6 +65,10 @@
|
|||
type: Array,
|
||||
required: true,
|
||||
},
|
||||
canCreateToken: {
|
||||
type: Boolean,
|
||||
required: true
|
||||
}
|
||||
},
|
||||
components: {
|
||||
AuthTokenSetupDialogue,
|
||||
|
|
Loading…
Reference in a new issue