Skip to content

Commit

Permalink
black 的时候误修改了其他地方,恢复一下
Browse files Browse the repository at this point in the history
  • Loading branch information
woshiyanghai committed Jul 4, 2024
1 parent 13ada5c commit e3ab1b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sql/utils/workflow_audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,11 +390,11 @@ def can_operate(self, action: WorkflowAction, actor: Users):
try:
audit_auth_group = Group.objects.get(id=self.audit.current_audit)
except Group.DoesNotExist:
raise AuditException("当前审批权限组不存在, 请联系管理员检查并清洗错误数据")
if not auth_group_users([audit_auth_group.name], self.resource_group_id):
raise AuditException(
"用户不在当前审批审批节点的用户组内, 无权限审核"
"当前审批权限组不存在, 请联系管理员检查并清洗错误数据"
)
if not auth_group_users([audit_auth_group.name], self.resource_group_id):
raise AuditException("用户不在当前审批审批节点的用户组内, 无权限审核")
return True
if action in [
WorkflowAction.EXECUTE_START,
Expand Down

0 comments on commit e3ab1b7

Please sign in to comment.