fix: 借用记录列表移除 sku 字段的权限过滤,所有角色均可正常查看
This commit is contained in:
@ -37,7 +37,7 @@ def filter_item_by_permissions(item_dict, user_permissions, prefix='op_records')
|
|||||||
field_to_perm = {
|
field_to_perm = {
|
||||||
'borrow_no': f'{prefix}:borrow_no',
|
'borrow_no': f'{prefix}:borrow_no',
|
||||||
'borrower_name': f'{prefix}:borrower_name',
|
'borrower_name': f'{prefix}:borrower_name',
|
||||||
'sku': f'{prefix}:sku',
|
# 'sku': f'{prefix}:sku', # SKU 字段不再参与权限过滤,直接返回
|
||||||
'borrow_time': f'{prefix}:borrow_time',
|
'borrow_time': f'{prefix}:borrow_time',
|
||||||
'return_time': f'{prefix}:return_time',
|
'return_time': f'{prefix}:return_time',
|
||||||
'status': f'{prefix}:status',
|
'status': f'{prefix}:status',
|
||||||
|
|||||||
Reference in New Issue
Block a user