-
-
Save ciwolsey/883c3794a939967e489b114bf5a7c6a4 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