Skip to content

Commit

Permalink
自动审核不通过的时候,不再走自动审核逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
woshiyanghai committed Jul 4, 2024
1 parent a059363 commit 13ada5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sql/utils/workflow_audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,9 @@ def can_operate(self, action: WorkflowAction, actor: Users):
except Group.DoesNotExist:
raise AuditException("当前审批权限组不存在, 请联系管理员检查并清洗错误数据")
if not auth_group_users([audit_auth_group.name], self.resource_group_id):
raise AuditException("用户不在当前审批审批节点的用户组内, 无权限审核")
raise AuditException(
"用户不在当前审批审批节点的用户组内, 无权限审核"
)
return True
if action in [
WorkflowAction.EXECUTE_START,
Expand Down

0 comments on commit 13ada5c

Please sign in to comment.