discourse/plugins/poll/test/javascripts/helpers/replace-current-user.js.es6

6 lines
184 B
JavaScript

export function replaceCurrentUser(properties) {
const currentUser = Discourse.User.current();
currentUser.setProperties(properties);
Discourse.User.resetCurrent(currentUser);
}