fix: roles, permission and access on profile page

This commit is contained in:
Jannat Patel
2025-11-06 12:21:12 +05:30
parent 27d2297e2b
commit 28be3891d2
8 changed files with 90 additions and 30 deletions

View File

@@ -54,16 +54,6 @@ export const sessionStore = defineStore('lms-session', () => {
},
})
const livecodeURL = createResource({
url: 'frappe.client.get_single_value',
params: {
doctype: 'LMS Settings',
field: 'livecode_url',
},
cache: 'livecodeURL',
auto: user.value ? true : false,
})
return {
user,
isLoggedIn,
@@ -71,6 +61,5 @@ export const sessionStore = defineStore('lms-session', () => {
logout,
brand,
branding,
livecodeURL,
}
})