-
Notifications
You must be signed in to change notification settings - Fork 58
add role permission on code scripts #396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||
PR Type
Enhancement, Bug fix
Description
Add role-based permission checks for code scripts page
Restrict save/reset operations to admin users only
Fix missing modelType properties in LLM configurations
Fetch user information on component mount for authorization
Diagram Walkthrough
File Walkthrough
+page.svelte
Implement role-based access control for code scriptssrc/routes/page/agent/code-scripts/+page.svelte
myInfofrom auth-service andADMIN_ROLESconstantmyInfo()ADMIN_ROLESagent-llm-config.svelte
Fix missing modelType properties in LLM configssrc/routes/page/agent/[agentId]/agent-components/agent-llm-config.svelte
modelType={LlmModelType.Audio}property toAudioTranscription config
modelType={LlmModelType.Realtime}property to Realtimeconfig