improved routing, cleaned mail

This commit is contained in:
Wyatt Johnson
2018-04-02 14:58:54 -06:00
parent 64d8d53987
commit c904d0f0c0
27 changed files with 323 additions and 169 deletions
+7
View File
@@ -137,6 +137,13 @@ class Context {
);
}
/**
* masqueradeAs will allow a given context to be copied to a new user.
*/
masqueradeAs(user) {
return new Context(merge({}, this, { user }));
}
/**
* forSystem returns a system context object that can be used for internal
* operations.