def user_can_delete_aichi_tool(request, odata_name): return wp_user_is_administrator(request) \ or wp_user_member_of_organization(request, odata_name) \ or request.user.has_perm('aichi_tools.delete_aigoaltools')
def user_can_change_aichi_activity(request, odata_name): return wp_user_is_administrator(request) \ or wp_user_member_of_organization(request, odata_name) \ or request.user.has_perm('aichi_activities.change_aigoalactivities')