fix: only super-user should be able to restart

This commit is contained in:
Vlad Stan 2022-12-12 10:34:23 +02:00
parent b758cb5be3
commit 53af4a4b99

View file

@ -17,7 +17,7 @@
style="padding: 6px; border-radius: 6px"
/>
</q-btn>
<q-btn label="Restart server" color="primary" @click="restartServer">
<q-btn v-if="isSuperUser" label="Restart server" color="primary" @click="restartServer">
<q-tooltip v-if="needsRestart">
Restart the server for changes to take effect
</q-tooltip>