Commit 4e92f0ba authored by wanli's avatar wanli

更新

parent 130aae93
...@@ -72,6 +72,8 @@ class AppLogsManager(object): ...@@ -72,6 +72,8 @@ class AppLogsManager(object):
editor = User.get(id=user) editor = User.get(id=user)
if not editor: if not editor:
return False, "current user is not exists" return False, "current user is not exists"
if editor.role == "USER":
temp.update({ 'create_by': editor }) temp.update({ 'create_by': editor })
if "scope_type" in data and data.get("scope_type") == "list": if "scope_type" in data and data.get("scope_type") == "list":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment