修改bug
This commit is contained in:
parent
15ed323c83
commit
5689613f82
|
@ -87,6 +87,7 @@ def change_auth_rule_node(db: Session, node_id: int, name: str, belong: Union[in
|
||||||
if parent_node.node_type != 'category':
|
if parent_node.node_type != 'category':
|
||||||
raise CommonException("父节点类型不为分类节点")
|
raise CommonException("父节点类型不为分类节点")
|
||||||
db.query(AuthRuleNode).filter_by(node_id).update({'name': name, 'belong': belong})
|
db.query(AuthRuleNode).filter_by(node_id).update({'name': name, 'belong': belong})
|
||||||
|
db.commit()
|
||||||
|
|
||||||
|
|
||||||
def get_default_auth_rule_config_by_id(db: Session, item_id: int):
|
def get_default_auth_rule_config_by_id(db: Session, item_id: int):
|
||||||
|
|
Loading…
Reference in New Issue