Retrieve roles from user data service

This commit is contained in:
Juan Carlos Ruvalcaba 2021-04-30 13:30:57 -07:00
parent 0323aa3f80
commit c0c87eddb1

View File

@ -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;