hassox / phoenix_guardian

A demo application showing usage of guardian and ueberauth
MIT License
299 stars 70 forks source link

Read permissions from config file on run instead of compilation #20

Closed wende closed 8 years ago

wende commented 8 years ago

Guardian.Permissions module reads the permissions from the config file during compilation time instead of runtime. Because of that changing the config.exs file has no effect post deps compilation, and do change config you need to clear the _deps folder, which shouldn't be the desired behaviour

hassox commented 8 years ago

Hey @wende

Guardian used to do this. It's been updated to read the permissions at runtime now rather than compile time. Would gladly take a PR that updates to the latest version of guardian.

hassox commented 8 years ago

I've updated guardian on the main (ueberauth-guardian) branch