• Jürgen Gmach's avatar
    Refactor is_accessible · 5d546b1d
    Jürgen Gmach authored
    Now, no more if statements are used.
    
    Also, this should be more readable, and even faster, as in case of any
    False value, the method can return early.
    
    modified:   examples/auth/app.py
    5d546b1d
Name
Last commit
Last update
babel Loading commit data...
doc Loading commit data...
examples Loading commit data...
flask_admin Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.travis.yml Loading commit data...
AUTHORS Loading commit data...
LICENSE Loading commit data...
MANIFEST.in Loading commit data...
Makefile Loading commit data...
NOTICE Loading commit data...
README.rst Loading commit data...
TODO.txt Loading commit data...
projects.rst Loading commit data...
requirements-dev.txt Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...
tox.ini Loading commit data...