summaryrefslogtreecommitdiffstats
path: root/settings/src
diff options
context:
space:
mode:
authorGreta Doci <gretadoci@gmail.com>2019-06-12 14:26:01 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2019-09-15 12:04:27 +0200
commit0a874c51af8dd6652c694f0545489af23d53771a (patch)
tree6781c94e2bb54cf4392ae826abf08086ff277321 /settings/src
parentd231fc9843b117c3361ce0b4e030d55c59607005 (diff)
downloadnextcloud-server-0a874c51af8dd6652c694f0545489af23d53771a.tar.gz
nextcloud-server-0a874c51af8dd6652c694f0545489af23d53771a.zip
Disable app token creation for impersonated people, ref #15539
Signed-off-by: Greta Doci <gretadoci@gmail.com>
Diffstat (limited to 'settings/src')
-rw-r--r--settings/src/components/AuthTokenSection.vue4
-rw-r--r--settings/src/main-personal-security.js1
2 files changed, 3 insertions, 2 deletions
diff --git a/settings/src/components/AuthTokenSection.vue b/settings/src/components/AuthTokenSection.vue
index c74348631db..7ddca568590 100644
--- a/settings/src/components/AuthTokenSection.vue
+++ b/settings/src/components/AuthTokenSection.vue
@@ -28,7 +28,7 @@
@rename="rename"
@delete="deleteToken"
@wipe="wipeToken" />
- <AuthTokenSetupDialogue :add="addNewToken" />
+ <AuthTokenSetupDialogue v-if="canCreateToken" :add="addNewToken" />
</div>
</template>
@@ -63,7 +63,7 @@
props: {
tokens: {
type: Array,
- requried: true,
+ required: true,
},
},
components: {
diff --git a/settings/src/main-personal-security.js b/settings/src/main-personal-security.js
index 2284cebea7b..9f020efd5f4 100644
--- a/settings/src/main-personal-security.js
+++ b/settings/src/main-personal-security.js
@@ -35,5 +35,6 @@ const View = Vue.extend(AuthTokenSection);
new View({
propsData: {
tokens: OCP.InitialState.loadState('settings', 'app_tokens'),
+ canCreateToken: OCP.InitialState.loadState('settings', 'can_create_app_token'),
}
}).$mount('#security-authtokens');