user can only clone a board on canManage permissions

Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
This commit is contained in:
Jakob Röhrl
2020-05-12 09:17:14 +02:00
parent 1efc58404d
commit 9c38e30f38

View File

@@ -149,6 +149,7 @@ export default {
text: t('deck', 'Edit board'),
})
}
if (canManage) {
actions.push({
action: async() => {
@@ -168,7 +169,7 @@ export default {
icon: 'icon-clone',
text: t('deck', 'Clone board'),
})
if (canManage) {
if (!this.board.archived) {
actions.push({
action: () => {