feat(weibo): 支持管理员强制转入工作台且不影响原使用人
This commit is contained in:
@@ -135,10 +135,13 @@ def import_weibo_cookies(
|
||||
continue
|
||||
owner_id = (
|
||||
db.query(WeiboWorkbenchAccount.user_id)
|
||||
.filter(WeiboWorkbenchAccount.account_id == account.id)
|
||||
.scalar()
|
||||
.filter(
|
||||
WeiboWorkbenchAccount.account_id == account.id,
|
||||
WeiboWorkbenchAccount.exclusive_slot.is_not(None),
|
||||
)
|
||||
.first()
|
||||
)
|
||||
if owner_id is not None and owner_id != current_user_id:
|
||||
if owner_id is not None and owner_id[0] != current_user_id:
|
||||
errors.append(
|
||||
WeiboImportIssue(
|
||||
line=line_no,
|
||||
|
||||
Reference in New Issue
Block a user