OpenUserJS.org
OpenUserJS.org copied to clipboard
Saving the modified user doc for Role Elevation from User to Author should propogate the change in role across active sessions
As per @sizzlemctwizzle comment from https://github.com/OpenUserJs/OpenUserJS.org/issues/1107#issuecomment-300274429 and https://github.com/OpenUserJs/OpenUserJS.org/issues/1107#issuecomment-300275368 :
... call the update method of libs/modifySessions.js to make sure the change is propagated in the session store.
This is followup for the perceived missing logic in that code section that was not there before the PR of #1108
NOTES:
- Missing
aReqobject to call existingmodifySessions.updatee.g. not in top level function signature. -
RepoManager.loadScriptsdoesn't currently haveaReqwith a user in it on import scripts from GH (e.g. webhook won't be able to elevate using currentmodifySessions.update)