adjusted the authz

This commit is contained in:
2026-03-02 13:23:39 +08:00
parent 7ac6df55c3
commit e32a4a2779
2 changed files with 24 additions and 1 deletions
+23
View File
@@ -0,0 +1,23 @@
# This is an example configuration file
# To learn more, see the full config.yaml reference: https://docs.continue.dev/reference
name: Example Config
version: 1.0.0
schema: v1
# Define which models can be used
# https://docs.continue.dev/customization/models
models:
- name: my gpt-5
provider: openai
model: gpt-5
apiKey: YOUR_OPENAI_API_KEY_HERE
- uses: ollama/qwen2.5-coder-7b
- uses: anthropic/claude-4-sonnet
with:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
# MCP Servers that Continue can access
# https://docs.continue.dev/customization/mcp-tools
mcpServers:
- uses: anthropic/memory-mcp
+1 -1
View File
@@ -17,7 +17,7 @@ func GetPermissionByResourceActionAndRole(resource, action string, roleID int) (
FROM permissions p FROM permissions p
INNER JOIN role_permissions rp INNER JOIN role_permissions rp
ON p.permissions_id = rp.permission_id ON p.permissions_id = rp.permission_id
WHERE p.resource = ? AND p.action = ? AND rp.role_id = ? WHERE p.resource = ? AND p.action = ? AND rp.role_id = ? AND rp.is_deleted = 0
LIMIT 1 LIMIT 1
` `