From 31d0a5c233d7ab37def1cbeb9c3bb53476e8df44 Mon Sep 17 00:00:00 2001
From: Cory McWilliams <cory@unprompted.com>
Date: Mon, 16 Jun 2025 12:20:09 -0400
Subject: [PATCH] intro: Don't meddle with settings as non-admin. #129

---
 apps/intro.json   | 2 +-
 apps/intro/app.js | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/apps/intro.json b/apps/intro.json
index 38de01c2..635a3aeb 100644
--- a/apps/intro.json
+++ b/apps/intro.json
@@ -1,5 +1,5 @@
 {
 	"type": "tildefriends-app",
 	"emoji": "💡",
-	"previous": "&5mHBroqVkbIVIYi883j374WJTlbDb2RwrG/9zZUBA7Q=.sha256"
+	"previous": "&eN6DNPpQUNhGvxneLuLPgsOXR6qyFZ7u+MAz0b4fa7k=.sha256"
 }
diff --git a/apps/intro/app.js b/apps/intro/app.js
index 42a23c62..3a2313b7 100644
--- a/apps/intro/app.js
+++ b/apps/intro/app.js
@@ -5,7 +5,8 @@ async function main() {
 }
 
 tfrpc.register(async function complete() {
-	if ((await core.globalSettingsGet('index')) == '/~core/intro/') {
+	if (core.user?.credentials?.permissions?.administration &&
+		(await core.globalSettingsGet('index')) == '/~core/intro/') {
 		return await core.globalSettingsSet('index', '/~core/ssb/');
 	}
 });