OpenUserJS.org icon indicating copy to clipboard operation
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

Open Martii opened this issue 8 years ago • 0 comments

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 aReq object to call existing modifySessions.update e.g. not in top level function signature.
  • RepoManager.loadScripts doesn't currently have aReq with a user in it on import scripts from GH (e.g. webhook won't be able to elevate using current modifySessions.update)

Martii avatar May 10 '17 07:05 Martii