Commit a56164c3 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Evita cruce de selección entre invitado y usuario

Al iniciar sesión tras haber creado selecciones como invitado, también
se limpia rastro de estas, para evitar problemas de permisos al
manipularlas.
parent 095d9b68
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -149,16 +149,17 @@ define([

		_onAccessTokenChanged: function(evt) {

			var value = evt.value,
				oldValue = evt.oldValue;
			var value = evt.value;

			if (!value) {
				this._onAccessTokenRemoved();
				return;
			}

			this._setEmptySelectionIds();

			var location = window.location;
			if (oldValue || location.pathname === this._loginPath) {
			if (location.pathname === this._loginPath) {
				this._getCredentials();
			} else {
				location.reload();