def authorize_changes(resource):
return current_user.is_admin()
# using SQLAlchemy's hybrid_property to provide a setter and validation step,
# below I use Flask-Alcohol's setter decorator to do the same thing
文章目录