Skip to content

Commit

Permalink
chore(version): 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wklken committed Jul 22, 2022
1 parent 88625ba commit a15b03b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion iam/__version__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-

__version__ = "1.2.0"
__version__ = "1.2.1"
2 changes: 2 additions & 0 deletions iam/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ def gen_perms_apply_data(system, subject, action_to_resources_list):

if topo_path:
for part in topo_path[1:-1].split("/"):
# NOTE: old _bk_iam_path_ is like /set,1/host,2/
# while the new _bk_iam_path_ is like /bk_cmdb,set,1/bk_cmdb,host,2/
node_parts = part.split(",")
rtype, rid = "", ""
if len(node_parts) == 2:
Expand Down
10 changes: 10 additions & 0 deletions release.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
版本日志
===============

# v1.2.1

- add: operator `string_contains` #68
- update: 规范化所有操作符左值/右值, 并增加校验(校验失败直接False)
- refactor: expression eval

注意: 如果使用 RBAC 接入权限中心, 必须使用这个版本的 SDK(action.auth_type="rbac")


# v1.2.0

- support django 3.2
Expand Down

0 comments on commit a15b03b

Please sign in to comment.