-
-
Save KamuelaFranco/18a438e860eab37db8554f7fc9d5565b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default { | |
isAllowed() { | |
return false; | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import auth from './auth' | |
export default { | |
findCar() { | |
if (auth.isAllowed()) return "A car"; | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Car from './model'; | |
const auth = { | |
isAllowed() { return true; }, | |
}; | |
Car.findCar(auth); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment