mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
perf: Create basic assistant permissions error
This commit is contained in:
committed by
fit2cloud-chenyw
parent
f0bf153e12
commit
3167783ed4
@@ -36,9 +36,8 @@ path = settings.EXCEL_PATH
|
||||
|
||||
|
||||
@router.get("/ws/{oid}", include_in_schema=False)
|
||||
@require_permissions(permission=SqlbotPermission(role=['ws_admin']))
|
||||
async def query_by_oid(session: SessionDep, user: CurrentUser, oid: int) -> List[CoreDatasource]:
|
||||
if not user.isAdmin:
|
||||
raise Exception("no permission to execute")
|
||||
return get_datasource_list(session=session, user=user, oid=oid)
|
||||
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
</div>
|
||||
<div class="value">
|
||||
<el-radio-group v-model="formData['login.default_login']">
|
||||
<el-radio v-for="item in loginTypeOptions" :key="item.value" :label="item.value">{{
|
||||
<el-radio v-for="item in loginTypeOptions" :key="item.value" :value="item.value">{{
|
||||
item.label
|
||||
}}</el-radio>
|
||||
</el-radio-group>
|
||||
|
||||
Reference in New Issue
Block a user