intro: Don't meddle with settings as non-admin. #129
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 32m57s
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 32m57s
This commit is contained in:
@ -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/');
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user