Functions moved to shortcuts.py

also tweaked permission checks