11 lines
269 B
JavaScript
11 lines
269 B
JavaScript
//If the user does not have a token, we send it to login
|
|
//si el usuario no tiene token lo enviamos a login
|
|
export default function({ store, redirect }) {
|
|
|
|
|
|
if (store.state.auth.userData.role !="ADMIN") {
|
|
return redirect("/compras");
|
|
}
|
|
|
|
|
|
} |