diff --git a/src/js/stores/user.js b/src/js/stores/user.js index 96068a0..9d4cc68 100644 --- a/src/js/stores/user.js +++ b/src/js/stores/user.js @@ -41,7 +41,7 @@ const user = createStore({ const token = response.data.token; delete response.data.token; const user = response.data.user; - const roles = [1, 4, 14]; //Owner, Customer, Seller, Deliverer//response.data.roles; + const roles = response.data.roles; //[1, 4, 14]; //Owner, Customer, Seller, Deliverer http.defaults.headers.common['Authorization'] = token; await dispatch('setBasicData', { token, user, roles }); return response;