update
This commit is contained in:
parent
89bd3b6a23
commit
d9647cf17e
@ -64,7 +64,7 @@ async def product_category_search(ns={}):
|
||||
orgid = user_list[0]['orgid']
|
||||
user_role = await get_user_role({'userid': userid, 'sor': sor})
|
||||
try:
|
||||
if user_role == '客户':
|
||||
if user_role == '客户' or user_role == '管理员':
|
||||
find_sql = """SELECT * FROM user_publish_product_category WHERE domain_name = '%s' AND permission = '1' AND del_flg = '0' ORDER BY priority;""" % domain_name
|
||||
else:
|
||||
find_sql = """SELECT * FROM user_publish_product_category WHERE domain_name = '%s' AND del_flg = '0' ORDER BY priority;""" % domain_name
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user