impersonate: limit new permissions to a subset of old permissions
This commit is contained in:
parent
8f19f26bd8
commit
cdb0411bd9
1 changed files with 1 additions and 0 deletions
|
|
@ -201,6 +201,7 @@ def _get_user_information(context, into, course, username, do_preload=False):
|
|||
into["role"] = None
|
||||
del into["permissions"]
|
||||
into = get_user_information(context)
|
||||
into["permissions"] = set(into["permissions"]) & set(old["p"])
|
||||
cslog = context["csm_cslog"]
|
||||
if "username" in into:
|
||||
logininfo = cslog.most_recent(
|
||||
|
|
|
|||
Loading…
Reference in a new issue