It will be better to separate permission codes from customize.py