From d00d2de1cc4ba1d4d533ecbb7b27528cbe22ce55 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Thu, 6 Nov 2025 12:28:27 +0530 Subject: [PATCH] fix: export livecodeURL from settings store --- frontend/src/pages/Profile.vue | 8 -------- frontend/src/stores/settings.js | 1 + lms/lms/api.py | 1 - 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/frontend/src/pages/Profile.vue b/frontend/src/pages/Profile.vue index c5c4eb44..e0dc20da 100644 --- a/frontend/src/pages/Profile.vue +++ b/frontend/src/pages/Profile.vue @@ -192,14 +192,6 @@ const hasHigherAccess = () => { return $user.data?.is_evaluator || $user.data?.is_moderator } -const isEvaluatorOrModerator = () => { - return ( - profile.data?.roles.filter( - (row) => row.role === 'Moderator' || row.role === 'Evaluator' - ).length > 0 - ) -} - const getTabButtons = () => { let buttons = [{ label: 'About' }, { label: 'Certificates' }] if ($user.data?.is_moderator) buttons.push({ label: 'Roles' }) diff --git a/frontend/src/stores/settings.js b/frontend/src/stores/settings.js index 5c700bd4..539a292f 100644 --- a/frontend/src/stores/settings.js +++ b/frontend/src/stores/settings.js @@ -56,5 +56,6 @@ export const useSettings = defineStore('settings', () => { contactUsEmail, contactUsURL, sidebarSettings, + livecodeURL, } }) diff --git a/lms/lms/api.py b/lms/lms/api.py index f8338a21..3d38797f 100644 --- a/lms/lms/api.py +++ b/lms/lms/api.py @@ -1676,7 +1676,6 @@ def get_pwa_manifest(): @frappe.whitelist() def get_profile_details(username): - print(username) return frappe.db.get_value( "User", {"username": username},