Fixing function api_is_allowed_to_create_course() admin has all permissions.