From 43eb86c77fe37deb359ddf26bf9aab78e4f7f85e Mon Sep 17 00:00:00 2001
From: Pitu <heyitspitu@gmail.com>
Date: Sat, 12 Oct 2019 20:16:10 +0900
Subject: fix: we don't want non-admins to access the settings section

---
 src/site/pages/dashboard/settings.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/site/pages/dashboard/settings.vue')

diff --git a/src/site/pages/dashboard/settings.vue b/src/site/pages/dashboard/settings.vue
index bc39b4f..1b9adcb 100644
--- a/src/site/pages/dashboard/settings.vue
+++ b/src/site/pages/dashboard/settings.vue
@@ -124,7 +124,7 @@ export default {
 	components: {
 		Sidebar
 	},
-	middleware: 'auth',
+	middleware: 'admin',
 	data() {
 		return {
 			options: {}
-- 
cgit v1.2.3

