Skip to content

Instantly share code, notes, and snippets.

@ciwolsey
Forked from KamuelaFranco/auth.js
Created May 21, 2016 01:21
Show Gist options
  • Save ciwolsey/883c3794a939967e489b114bf5a7c6a4 to your computer and use it in GitHub Desktop.
Save ciwolsey/883c3794a939967e489b114bf5a7c6a4 to your computer and use it in GitHub Desktop.
export default {
isAllowed() {
return false;
}
};
import auth from './auth'
export default {
findCar() {
if (auth.isAllowed()) return "A car";
}
};
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